=per #15943 Avoid initite restart loop when recovery fails
* also include the failing message and sequenceNr in the RecoveryFailure message * remove the "putting back" the message first in the mailbox
This commit is contained in:
parent
da7991a3d5
commit
72d54626f3
6 changed files with 123 additions and 75 deletions
|
|
@ -42,12 +42,16 @@ object PersistentViewSpec {
|
|||
case "boom" ⇒
|
||||
throw new TestException("boom")
|
||||
|
||||
case RecoveryFailure(cause) ⇒
|
||||
throw cause // restart
|
||||
|
||||
case payload if isPersistent && shouldFailOn(payload) ⇒
|
||||
throw new TestException("boom")
|
||||
|
||||
case payload if isPersistent ⇒
|
||||
last = s"replicated-${payload}-${lastSequenceNr}"
|
||||
probe ! last
|
||||
|
||||
}
|
||||
|
||||
override def postRestart(reason: Throwable): Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue