=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:
Patrik Nordwall 2014-12-13 15:35:12 +01:00
parent da7991a3d5
commit 72d54626f3
6 changed files with 123 additions and 75 deletions

View file

@ -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 = {