rkhachatryan commented on a change in pull request #11491:
[FLINK-16513][checkpointing] Unaligned checkpoints: checkpoint metadata
URL: https://github.com/apache/flink/pull/11491#discussion_r397456046
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV3Serializer.java
##########
@@ -115,4 +120,31 @@ protected OperatorState
deserializeOperatorState(DataInputStream dis) throws IOE
return operatorState;
}
+
+ @VisibleForTesting
+ @Override
+ public void
serializeResultSubpartitionStateHandle(ResultSubpartitionStateHandle handle,
DataOutputStream dos) throws IOException {
+ channelStateHandleSerializer.serialize(handle, dos);
+ }
+
+ @VisibleForTesting
+ @Override
+ public ResultSubpartitionStateHandle
deserializeResultSubpartitionStateHandle(DataInputStream dis) throws
IOException {
+ final boolean hasResultSubpartitionStateHandle = dis.readInt()
!= 0;
Review comment:
Backward compatibility is maintained on a snapshot level (by having version
number at the beginning of it). This check is for cases when there is no state
(same approach as for other parts of the state).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services