Skip to content

Commit

Permalink
[runtime] Process reaper gives log time to reach disk before killing …
Browse files Browse the repository at this point in the history
…the process
  • Loading branch information
StephanEwen committed Apr 29, 2015
1 parent 421e4a1 commit 8f55abe
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ public void onReceive(Object message) {
String name = term.actor().path().toSerializationFormat();
if (log != null) {
log.error("Actor " + name + " terminated, stopping process...");

// give the log some time to reach disk
try {
Thread.sleep(100);
}
catch (InterruptedException e) {
// not really problem if we don't sleep...
}
}
}
finally {
Expand Down

0 comments on commit 8f55abe

Please sign in to comment.