1996fanrui commented on code in PR #23765:
URL: https://github.com/apache/flink/pull/23765#discussion_r1404136470
##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/snapshot/RocksIncrementalSnapshotStrategy.java:
##########
@@ -350,6 +359,10 @@ private long uploadSnapshotFiles(
? CheckpointedStateScope.EXCLUSIVE
: CheckpointedStateScope.SHARED;
+ if (stateFileVerifier != null) {
+ stateFileVerifier.verifySstFilesChecksum(sstFilePaths);
+ }
+
List<HandleAndLocalPath> sstFilesUploadResult =
stateUploader.uploadFilesToCheckpointFs(
Review Comment:
From the code order, we verify the file first, and then
`uploadFilesToCheckpointFs`.
If the file is corrupted before calling `hdfs.write()` and after
`verifySstFilesChecksum`, this check still doesn't work, right?
--
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]