Skip to content

Commit

Permalink
Add a note about RecoveryCompleted for new actors
Browse files Browse the repository at this point in the history
  • Loading branch information
liff committed Nov 4, 2016
1 parent 20942b3 commit 9390519
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions akka-docs/rst/java/persistence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ and before any other received messages.

.. includecode:: code/docs/persistence/PersistenceDocTest.java#recovery-completed

The actor will always receive a :class:`RecoveryCompleted` message, even if there are no events
in the journal and the snapshot store is empty, or if it's a new persistent actor with a previously
unused ``persistenceId``.

If there is a problem with recovering the state of the actor from the journal, ``onRecoveryFailure``
is called (logging the error by default) and the actor will be stopped.

Expand Down
4 changes: 4 additions & 0 deletions akka-docs/rst/scala/persistence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ and before any other received messages.

.. includecode:: code/docs/persistence/PersistenceDocSpec.scala#recovery-completed

The actor will always receive a :class:`RecoveryCompleted` message, even if there are no events
in the journal and the snapshot store is empty, or if it's a new persistent actor with a previously
unused ``persistenceId``.

If there is a problem with recovering the state of the actor from the journal, ``onRecoveryFailure``
is called (logging the error by default) and the actor will be stopped.

Expand Down

0 comments on commit 9390519

Please sign in to comment.