dybyte commented on code in PR #11226:
URL: https://github.com/apache/seatunnel/pull/11226#discussion_r3497710818


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/StateStoreCheckpointIDCounter.java:
##########
@@ -57,26 +57,26 @@ public void start() throws Exception {
     @Override
     public CompletableFuture<Void> shutdown(PipelineStatus pipelineStatus) {
         if (pipelineStatus.isEndState()) {
-            checkpointIdMap.remove(key);
+            checkpointCounterStore.remove(key);
         }
         return CompletableFuture.completedFuture(null);
     }
 
     @Override
     public long getAndIncrement() throws Exception {
-        Long nextId = checkpointIdMap.compute(key, (k, v) -> v == null ? null 
: v + 1);
+        long nextId = checkpointCounterStore.incrementAndGet(key);
         checkNotNull(nextId);

Review Comment:
   Closing this PR because the source branch link was broken after I renamed 
the branch.
   I will reopen a new PR with the corrected branch name. Sorry for the 
inconvenience.



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