Merge pull request #24049 from akka/wip-24048-coordinated-downing-patriknw

Run all CoordinatedShutdown phases also when downing, #24048
This commit is contained in:
Patrik Nordwall 2017-12-05 13:01:43 +01:00 committed by GitHub
commit 774bfee074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 331 additions and 53 deletions

View file

@ -832,7 +832,8 @@ public class ActorDocTest extends AbstractJavaTest {
// don't run this
if (false) {
//#coordinated-shutdown-run
CompletionStage<Done> done = CoordinatedShutdown.get(system).runAll();
CompletionStage<Done> done = CoordinatedShutdown.get(system).runAll(
CoordinatedShutdown.unknownReason());
//#coordinated-shutdown-run
}
}

View file

@ -756,7 +756,7 @@ class ActorDocSpec extends AkkaSpec("""
// don't run this
def dummy(): Unit = {
//#coordinated-shutdown-run
val done: Future[Done] = CoordinatedShutdown(system).run()
val done: Future[Done] = CoordinatedShutdown(system).run(CoordinatedShutdown.UnknownReason)
//#coordinated-shutdown-run
}
}