wonook 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_r326251485
##########
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:
Before, it just simply re-initialized the jobDoneLatch no matter what. I
wanted to double-check that it was initialized only when it was necessary.
----------------------------------------------------------------
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