AHeise commented on a change in pull request #13562:
URL: https://github.com/apache/flink/pull/13562#discussion_r502231115



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java
##########
@@ -121,11 +123,15 @@ public void run() {
                                
localTaskOperatorSubtaskStates.putSubtaskStateByOperatorID(
                                        operatorID,
                                        finalizedSnapshots.getTaskLocalState());
+
+                               bytesPersistedDuringAlignment += 
finalizedSnapshots.getJobManagerOwnedState().getResultSubpartitionState().getStateSize();
+                               bytesPersistedDuringAlignment += 
finalizedSnapshots.getJobManagerOwnedState().getInputChannelState().getStateSize();
                        }
 
                        final long asyncEndNanos = System.nanoTime();
                        final long asyncDurationMillis = (asyncEndNanos - 
asyncConstructionNanos) / 1_000_000L;
 
+                       
checkpointMetrics.setBytesPersistedDuringAlignment(bytesPersistedDuringAlignment);

Review comment:
       Just want to make sure that we are correctly accounting small channel 
states that are not stored in separate files.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to