GJL commented on a change in pull request #10080: [FLINK-14600] Degenerate the 
current AtomicInteger type of verticesFinished to a normal int type
URL: https://github.com/apache/flink/pull/10080#discussion_r342498395
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionGraph.java
 ##########
 @@ -1381,8 +1380,7 @@ private void initFailureCause(Throwable t) {
         */
        void vertexFinished() {
                assertRunningInJobMasterMainThread();
-               final int numFinished = verticesFinished.incrementAndGet();
 
 Review comment:
   I would keep this variable for readability. `++` can be easily missed in the 
if-condition.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to