nemo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nemo] alapha23 commented on a change in pull request #187: [NEMO-324] Distinguish Beam's run and waitUntilFinish methods
Date Mon, 09 Sep 2019 07:41:43 GMT
alapha23 commented on a change in pull request #187: [NEMO-324] Distinguish Beam's run and
waitUntilFinish methods
URL: https://github.com/apache/incubator-nemo/pull/187#discussion_r322100463
 
 

 ##########
 File path: client/src/main/java/org/apache/nemo/client/JobLauncher.java
 ##########
 @@ -259,7 +262,9 @@ public static void launchDAG(final IRDAG dag,
 
     LOG.info("Launching DAG...");
     serializedDAG = Base64.getEncoder().encodeToString(SerializationUtils.serialize(dag));
-    jobDoneLatch = new CountDownLatch(1);
+    if (jobDoneLatch == null || jobDoneLatch.getCount() == 0) {
 
 Review comment:
   Why do we need to check latch value here?
   Wouldn't setup be called earlier than launchDAG?

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


With regards,
Apache Git Services

Mime
View raw message