Fail all stages on abrupt termination #22652
This commit is contained in:
parent
7ca40a8518
commit
87b28d0dc5
23 changed files with 307 additions and 72 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue