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_r400402764
 
 

 ##########
 File path: 
flink-streaming-java/src/test/java/org/apache/flink/streaming/util/OperatorSnapshotUtil.java
 ##########
 @@ -79,6 +81,18 @@ public static void writeStateHandle(OperatorSubtaskState 
state, String path) thr
                                dos.writeInt(-1);
                        }
 
+                       Collection<InputChannelStateHandle> 
inputChannelStateHandles  = state.getInputChannelState();
+                       dos.writeInt(inputChannelStateHandles.size());
+                       for (InputChannelStateHandle inputChannelStateHandle : 
inputChannelStateHandles) {
+                               
MetadataV3Serializer.INSTANCE.serializeInputChannelStateHandle(inputChannelStateHandle,
 dos);
+                       }
+
+                       Collection<ResultSubpartitionStateHandle> 
resultSubpartitionStateHandles  = state.getResultSubpartitionState();
+                       dos.writeInt(inputChannelStateHandles.size());
+                       for (ResultSubpartitionStateHandle 
resultSubpartitionStateHandle : resultSubpartitionStateHandles) {
+                               
MetadataV3Serializer.INSTANCE.serializeResultSubpartitionStateHandle(resultSubpartitionStateHandle,
 dos);
 
 Review comment:
   Yes, you're right. Thanks for pointing this out.

----------------------------------------------------------------
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

Reply via email to