seojangho commented on a change in pull request #71: [NEMO-55] Handle NCS
Master-to-Executor RPC failures
URL: https://github.com/apache/incubator-nemo/pull/71#discussion_r201222335
##########
File path: runtime/driver/src/main/java/edu/snu/nemo/driver/NemoContext.java
##########
@@ -48,17 +60,32 @@ private NemoContext(final Executor executor) {
@Override
public void onNext(final ContextStart contextStart) {
LOG.info("Context Started: Executor is now ready and listening for
messages");
+
+ // For poison handling
+ if (crashTimeSec >= 0) {
+ final int crashTimeMs = addNoise(crashTimeSec * 1000);
+ LOG.info("Configured {} sec crash time, and actually crashing in {} ms
(noise)", crashTimeSec, crashTimeMs);
+ clock.scheduleAlarm(crashTimeMs, (alarm) -> {
+ LOG.info("POISON: CRASH!!!!!");
Review comment:
Calm message, please.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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