fredia commented on code in PR #24644:
URL: https://github.com/apache/flink/pull/24644#discussion_r1565310108
##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/snapshot/RocksIncrementalSnapshotStrategy.java:
##########
@@ -349,6 +350,13 @@ private long uploadSnapshotFiles(
? CheckpointedStateScope.EXCLUSIVE
: CheckpointedStateScope.SHARED;
+ // Report the reuse of state handle to stream factory, which
is essential for file
+ // merging mechanism.
+ checkpointStreamFactory.reusePreviousStateHandle(
Review Comment:
If the following uploading fails, the logic files will be deleted with delay?
And I think the `reusePreviousStateHandle` is a little bit indirect. In
fact, the `lastUsedCheckpoint` of the newly generated and previous logical
files are both updated here.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]