Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-34522

StateTtlConfig#cleanupInRocksdbCompactFilter still uses the deprecated Time class

    XMLWordPrintableJSON

Details

    Description

      FLINK-32570 deprecated the Time class and refactor all Public or PublicEvolving apis to use the Java's Duration.

      StateTtlConfig.Builder#cleanupInRocksdbCompactFilter is still using the Time class. In general, we expect:

      • Mark cleanupInRocksdbCompactFilter(long, Time) as @Deprecated
      • Provide a new cleanupInRocksdbCompactFilter(long, Duration)

      Note: This is exactly what FLINK-32570 does, so I guess FLINK-32570 missed cleanupInRocksdbCompactFilter.

      But I found this method is introduced in 1.19(FLINK-30854), so a better solution may be: only provide cleanupInRocksdbCompactFilter(long, Duration) and don't use Time.

      The deprecated Api should be keep for 2 minor version. IIUC, we cannot remove Time related class in Flink 2.0 if we don't deprecate it in 1.19. If so, I think it's better to merge this JIRA in 1.19.0 as well.

      Attachments

        Activity

          People

            fanrui Rui Fan
            fanrui Rui Fan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: