Github user sihuazhou commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5578#discussion_r171130767
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/TaskLocalStateStoreImpl.java
 ---
    @@ -159,6 +166,11 @@ public TaskStateSnapshot retrieveLocalState(long 
checkpointID) {
                TaskStateSnapshot snapshot;
                synchronized (lock) {
                        snapshot = 
storedTaskStateByCheckpointID.get(checkpointID);
    +
    +                   if (retrieveWithDiscard) {
    +                           // Only the TaskStateSnapshot.checkpointID == 
checkpointID is useful, we remove the others
    --- End diff --
    
    👍 


---

Reply via email to