wonook commented on a change in pull request #232: [NEMO-411] Bug in
ScheduleGroupPass, OutputTag, DuplicateEdgeGroup
URL: https://github.com/apache/incubator-nemo/pull/232#discussion_r329946571
##########
File path:
common/src/main/java/org/apache/nemo/common/ir/vertex/LoopVertex.java
##########
@@ -34,20 +34,21 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.IntPredicate;
/**
* IRVertex that contains a partial DAG that is iterative.
*/
public final class LoopVertex extends IRVertex {
- private static int duplicateEdgeGroupId = 0;
+ private final AtomicInteger duplicateEdgeGroupId = new AtomicInteger(0);
Review comment:
Same here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services