Rui Fan created FLINK-34522:
-------------------------------

             Summary: StateTtlConfig#cleanupInRocksdbCompactFilter still use 
the deprecated Time
                 Key: FLINK-34522
                 URL: https://issues.apache.org/jira/browse/FLINK-34522
             Project: Flink
          Issue Type: Improvement
          Components: API / Core
    Affects Versions: 1.19.0
            Reporter: Rui Fan
            Assignee: Rui Fan
             Fix For: 1.19.0, 1.20.0


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 it as @Deprecated  
 * Provide a new cleanupInRocksdbCompactFilter(long, Duration)

 

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to