You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "zentol (via GitHub)" <gi...@apache.org> on 2024/02/01 11:00:58 UTC

Re: [PR] [FLINK-34004] Harden TestingCheckpointIDCounter [flink]

zentol commented on code in PR #24032:
URL: https://github.com/apache/flink/pull/24032#discussion_r1474251842


##########
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/TestingCheckpointIDCounter.java:
##########
@@ -91,11 +92,14 @@ public static Builder builder() {
     /** {@code Builder} for creating {@code TestingCheckpointIDCounter} instances. */
     public static class Builder {
 
-        private Runnable startRunnable;
-        private Function<JobStatus, CompletableFuture<Void>> shutdownFunction;
-        private Supplier<Integer> getAndIncrementSupplier;
-        private Supplier<Integer> getSupplier;
-        private Consumer<Long> setCountConsumer;
+        private final AtomicLong defaultCheckpointIdStore = new AtomicLong();

Review Comment:
   Indeed, this needs to be fixed.



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org