rkhachatryan commented on a change in pull request #16404:
URL: https://github.com/apache/flink/pull/16404#discussion_r665723677



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/ttl/TtlStateFactory.java
##########
@@ -137,32 +139,41 @@ private IS createState() throws Exception {
     @SuppressWarnings("unchecked")
     private IS createValueState() throws Exception {
         ValueStateDescriptor<TtlValue<SV>> ttlDescriptor =
-                new ValueStateDescriptor<>(
-                        stateDesc.getName(),
-                        new TtlSerializer<>(LongSerializer.INSTANCE, 
stateDesc.getSerializer()));
+                stateDesc.getSerializer() instanceof TtlSerializer

Review comment:
       Not in Heap and RocksDB as far as I know.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to