-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
=per #3915 Make become work during recovery for EventsourcedProcessor et.c. #2082
=per #3915 Make become work during recovery for EventsourcedProcessor et.c. #2082
Conversation
override def toString: String = "recovering" | ||
|
||
def aroundReceive(receive: Receive, message: Any) { | ||
Eventsourced.super.aroundReceive(receive, message) | ||
// Since we are recovering we can ignore the receive behavior from the stack | ||
Eventsourced.super.aroundReceive(_recoveryBehavior, message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent
LGTM |
@bantonsson one more thing; the ExampleProcessor in the docs is not correct. It doesn't do become in receiveRecover. I think that example should be simplified, not use become. Too many things. Instead we should mention in the docs that become is supported, and perhaps have a separate example of it. |
@patriknw, yes I know. It can end up i n the wrong state during recovery. I'll remove that and add it to the docs instead. |
Updated the doc and samples. Also added the necessary things to the lambda sample for it to become an activator tutorial. |
|
||
The easiest way to run this example yourself is to download `Typesafe Activator <http://www.typesafe.com/platform/getstarted>`_ | ||
and open the tutorial named `Akka Persistence Samples with Java <http://www.typesafe.com/activator/template/akka-sample-persistence-java8>`_. | ||
and open the tutorial named `Akka Persistence Samples with Java <http://www.typesafe.com/activator/template/akka-sample-persistence-java-lambda>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be changed to Akka Persistence Samples in Java with Lambdas
I created a reminder to update the download page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Thanks.
LGTM |
So if I understand correctly, This separation seems like it might want to be simplified—or I am just confused and should read the docs with a bit more time. Apart from this, it LGTM for now. |
@rkuhn, It's not possible to get Yes, the logic is convoluted. I don't want to touch it before 2.3.1, but I created a ticket. |
…me-during-recover-ban =per #3915 Make become work during recovery for EventsourcedProcessor et.c.
No description provided.