Skip to content

What is the correct way of disabling recovery of ReceivePersistentActor after some particular evert #7129

Discussion options

You must be logged in to vote

Ah, this is your issue: RememberEntities = true - now this makes more sense. The "dead" entities are automatically being restarted.

I have an even easier solution for you then - you just need to tell the Sharding system "stop remembering me" when the session is terminated. You can do this via the following:

 // send Passivate to parent (shard actor) to stop remembering this entity.
// shard actor will send us back a `PoisonPill.Instance` message
// as our "shutdown" signal - at which point we can terminate normally.
Context.Parent.Tell(new Passivate(PoisonPill.Instance));

Documentation showing how to do this is here: https://getakka.net/articles/clustering/cluster-sharding.html#terminatin…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Aaronontheweb
Comment options

@AlexanderKapelyukhovskiy
Comment options

@AlexanderKapelyukhovskiy
Comment options

@Aaronontheweb
Comment options

Answer selected by AlexanderKapelyukhovskiy
@Aaronontheweb
Comment options

@AlexanderKapelyukhovskiy
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants