!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:
parent
5af6d0711a
commit
6e2f80bab0
39 changed files with 563 additions and 364 deletions
|
|
@ -60,14 +60,14 @@ object LoggingDocSpec {
|
|||
reqId += 1
|
||||
val always = Map("requestId" -> reqId)
|
||||
val perMessage = currentMessage match {
|
||||
case r: Req => Map("visitorId" -> r.visitorId)
|
||||
case _ => Map()
|
||||
case r: Req ⇒ Map("visitorId" -> r.visitorId)
|
||||
case _ ⇒ Map()
|
||||
}
|
||||
always ++ perMessage
|
||||
}
|
||||
|
||||
def receive: Receive = {
|
||||
case r: Req => {
|
||||
case r: Req ⇒ {
|
||||
log.info(s"Starting new request: ${r.work}")
|
||||
}
|
||||
}
|
||||
|
|
@ -75,7 +75,6 @@ object LoggingDocSpec {
|
|||
|
||||
//#mdc-actor
|
||||
|
||||
|
||||
//#my-event-listener
|
||||
import akka.event.Logging.InitializeLogger
|
||||
import akka.event.Logging.LoggerInitialized
|
||||
|
|
@ -117,7 +116,7 @@ object LoggingDocSpec {
|
|||
|
||||
class LoggingDocSpec extends AkkaSpec {
|
||||
|
||||
import LoggingDocSpec.{MyActor, MdcActor, MdcActorMixin, Req}
|
||||
import LoggingDocSpec.{ MyActor, MdcActor, MdcActorMixin, Req }
|
||||
|
||||
"use a logging actor" in {
|
||||
val myActor = system.actorOf(Props[MyActor])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue