You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "coderzc (via GitHub)" <gi...@apache.org> on 2023/04/23 05:53:24 UTC

[GitHub] [incubator-hugegraph-computer] coderzc commented on a diff in pull request #237: fix superstep not effect

coderzc commented on code in PR #237:
URL: https://github.com/apache/incubator-hugegraph-computer/pull/237#discussion_r1174513023


##########
computer-core/src/main/java/org/apache/hugegraph/computer/core/master/MasterService.java:
##########
@@ -335,9 +335,7 @@ private boolean finishedIteration(boolean masterContinue,
         if (context.superstep() >= this.maxSuperStep - 1) {
             return true;
         }
-        long activeVertexCount = context.totalVertexCount() -
-                                 context.finishedVertexCount();
-        return context.messageCount() == 0L && activeVertexCount == 0L;
+        return false;

Review Comment:
   It seems can't use `flase` directly here, if there are no more messages to send and no active vertex it should end the computation early



-- 
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@hugegraph.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org