You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/04/28 02:24:57 UTC

[GitHub] [flink] zlzhang0122 commented on a diff in pull request #8751: [FLINK-11937][StateBackend]Resolve small file problem in RocksDB incremental checkpoint

zlzhang0122 commented on code in PR #8751:
URL: https://github.com/apache/flink/pull/8751#discussion_r860405882


##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/snapshot/RocksIncrementalSnapshotStrategy.java:
##########
@@ -177,6 +187,11 @@ public void notifyCheckpointComplete(long completedCheckpointId) {
 				materializedSstFiles.keySet().removeIf(checkpointId -> checkpointId < completedCheckpointId);
 				lastCompletedCheckpointId = completedCheckpointId;
 			}
+
+			// We need to close the file for current completed checkpoint.
+			if (checkpointStreamFactory instanceof FsSegmentCheckpointStreamFactory) {

Review Comment:
   I think maybe we also need to close the file for current aborted checkpoint too.



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org