Details
-
Improvement
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
1.19.0
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.