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



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/SharedStateRegistryImpl.java
##########
@@ -95,48 +100,36 @@ public Result registerReference(
                             state,
                             entry.stateHandle);
                 }
-                entry.increaseReferenceCount();
+                entry.lastUsedCheckpointID = Math.max(checkpointID, 
entry.lastUsedCheckpointID);

Review comment:
       nitty nit: I would extract this to a method inside `SharedStateEntry` 
for the sake of encapsulation.




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