Fail all stages on abrupt termination #22652

This commit is contained in:
Johan Andrén 2017-04-28 11:11:50 +02:00 committed by GitHub
parent 7ca40a8518
commit 87b28d0dc5
23 changed files with 307 additions and 72 deletions

View file

@ -255,6 +255,10 @@ import akka.util.OptionVal
failStage(ex)
}
override def postStop(): Unit = {
if (!p.isCompleted) p.failure(new AbruptStageTerminationException(this))
}
setHandler(in, this)
}, p.future)
}
@ -297,6 +301,10 @@ import akka.util.OptionVal
failStage(ex)
}
override def postStop(): Unit = {
if (!p.isCompleted) p.failure(new AbruptStageTerminationException(this))
}
setHandler(in, this)
}