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



##########
File path: 
flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/ChangelogStateBackend.java
##########
@@ -272,7 +273,16 @@ public StateBackend configure(ReadableConfig config, 
ClassLoader classLoader)
                                         : new ChangelogStateBackendHandleImpl(
                                                 
singletonList(keyedStateHandle),
                                                 emptyList(),
-                                                
keyedStateHandle.getKeyGroupRange()))
+                                                
keyedStateHandle.getKeyGroupRange(),
+                                                
getMaterializationID(keyedStateHandle)))
                 .collect(Collectors.toList());
     }
+
+    private long getMaterializationID(KeyedStateHandle keyedStateHandle) {
+        if (keyedStateHandle instanceof IncrementalKeyedStateHandle) {
+            return ((IncrementalKeyedStateHandle) 
keyedStateHandle).getCheckpointId();

Review comment:
       I've added `CheckpointBoundKeyedStateHandle` as agreed offline, PTAL.




-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to