!per #3729 Journaling protocol optimization

- internal batching of individually received Persistent messages
- testing fault tolerance of Processor in presence of random
  * journaling failures
  * processing failures
This commit is contained in:
Martin Krasser 2013-11-20 13:47:42 +01:00
parent 5af6d0711a
commit 6e2f80bab0
39 changed files with 563 additions and 364 deletions

View file

@ -23,6 +23,9 @@ import akka.persistence.snapshot._
object PersistencePluginDocSpec {
val config =
"""
//#max-batch-size
akka.persistence.journal.max-batch-size = 200
//#max-batch-size
//#journal-config
akka.persistence.journal.leveldb.dir = "target/journal"
//#journal-config
@ -69,8 +72,7 @@ class PersistencePluginDocSpec extends WordSpec {
}
class MyJournal extends AsyncWriteJournal {
def writeAsync(persistent: PersistentRepr): Future[Unit] = ???
def writeBatchAsync(persistentBatch: Seq[PersistentRepr]): Future[Unit] = ???
def writeAsync(persistentBatch: Seq[PersistentRepr]): Future[Unit] = ???
def deleteAsync(processorId: String, fromSequenceNr: Long, toSequenceNr: Long, permanent: Boolean): Future[Unit] = ???
def confirmAsync(processorId: String, sequenceNr: Long, channelId: String): Future[Unit] = ???
def replayAsync(processorId: String, fromSequenceNr: Long, toSequenceNr: Long)(replayCallback: (PersistentRepr) Unit): Future[Long] = ???