StefanRRichter commented on a change in pull request #6875: [FLINK-9808] [state 
backends] Migrate state when necessary in state backends
URL: https://github.com/apache/flink/pull/6875#discussion_r226676987
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/HeapKeyedStateBackend.java
 ##########
 @@ -269,10 +269,11 @@ public HeapKeyedStateBackend(
                                "Requested to check compatibility of a restored 
RegisteredKeyedBackendStateMetaInfo," +
                                        " but its corresponding restored 
snapshot cannot be found.");
 
-                       newMetaInfo = 
RegisteredKeyValueStateBackendMetaInfo.resolveKvStateCompatibility(
-                               restoredMetaInfoSnapshot,
+                       newMetaInfo = new 
RegisteredKeyValueStateBackendMetaInfo<>(
 
 Review comment:
   We can now move this outside the if and initialize `newMetaInfo` directly 
for all cases to reduce code duplication.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to