Myasuka commented on a change in pull request #17774:
URL: https://github.com/apache/flink/pull/17774#discussion_r770198103



##########
File path: 
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/snapshot/RocksIncrementalSnapshotStrategy.java
##########
@@ -97,12 +98,23 @@
 
     /**
      * Stores the materialized sstable files from all snapshots that build the 
incremental history.
+     * Used to check whether {@link PlaceholderStreamStateHandle} can be sent 
or the original {@link
+     * StreamStateHandle} must be used.
      */
-    @Nonnull private final SortedMap<Long, Set<StateHandleID>> 
materializedSstFiles;
+    @Nonnull private final SortedMap<Long, Set<StateHandleID>> 
uploadedStateIDs;
+
+    /**
+     * Last uploaded but potentially not confirmed SST files. Used if {@link 
#uploadedStateIDs}
+     * doesn't contain the corresponding {@link StateHandleID}.
+     */
+    @Nonnull private final Map<StateHandleID, StreamStateHandle> 
lastUploadedSstFiles;

Review comment:
       You are right, the `lastUploadedSstFiles` would only be cleared after 
calling `createUploadFilePaths`.




-- 
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]


Reply via email to