You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/07/05 08:42:36 UTC

[GitHub] [flink] zentol commented on a diff in pull request #20014: [FLINK-26979][table-planner] Correct the race condition on transformation node id

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


##########
flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java:
##########
@@ -108,11 +109,10 @@
     public static final int UPPER_BOUND_MAX_PARALLELISM = 1 << 15;
 
     // This is used to assign a unique ID to every Transformation
-    protected static Integer idCounter = 0;
+    protected static final AtomicInteger ID_COUNTER = new AtomicInteger(0);

Review Comment:
   I will finalize this PR.



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