+con #3937 Start ShardCoordinator again after PersistenceFailure

* Add supervisor level that will start the ShardCoordinator again after
  a configurable backoff duration
* Make the timeout of SharedLeveldbJournal configurable
* Include cause of PersistenceFailure in message of ActorKilledException
This commit is contained in:
Patrik Nordwall 2014-03-23 20:09:46 +01:00
parent 8f7faf7898
commit 8ebc413643
7 changed files with 253 additions and 12 deletions

View file

@ -91,7 +91,8 @@ trait Processor extends Actor with Recovery {
else {
val errorMsg = "Processor killed after persistence failure " +
s"(processor id = [${processorId}], sequence nr = [${p.sequenceNr}], payload class = [${p.payload.getClass.getName}]). " +
"To avoid killing processors on persistence failure, a processor must handle PersistenceFailure messages."
"To avoid killing processors on persistence failure, a processor must handle PersistenceFailure messages. " +
"PersistenceFailure was caused by: " + cause
throw new ActorKilledException(errorMsg)
}
case LoopMessageSuccess(m) process(receive, m)