zhijiangW commented on a change in pull request #11515: [FLINK-16744][task]
implement channel state persistence for unaligned checkpoints
URL: https://github.com/apache/flink/pull/11515#discussion_r401519043
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -97,24 +123,26 @@ public void checkpointState(
// Step (3): Take the state snapshot. This should be largely
asynchronous, to not
// impact progress of the streaming topology
- CheckpointStreamFactory storage =
checkpointStorage.resolveCheckpointStorageLocation(
- checkpointMetaData.getCheckpointId(),
- checkpointOptions.getTargetLocation());
-
long startSyncPartNano = System.nanoTime();
HashMap<OperatorID, OperatorSnapshotFutures>
operatorSnapshotsInProgress = new
HashMap<>(operatorChain.getNumberOfOperators());
+ ChannelStateWriteResult channelStateWriteResult =
Review comment:
should we add some `TODO` before `getWriteResult`, otherwise it seems hard
to understand from this commit that we actually have not written anything
before get the result.
----------------------------------------------------------------
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