Skip to content

Akka.Cluster.Sharding: dealing with remember-entities and actors who can't start up correctly #7629

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

Open
Aaronontheweb opened this issue May 9, 2025 · 0 comments

Comments

@Aaronontheweb
Copy link
Member

Version Information
Version of Akka.NET? v1.5.41
Which Akka.NET Modules? Akka.Cluster.Sharding

Describe the bug

So an interesting scenario:

  1. Actor gets created via Akka.Cluster.Sharding, but is misconfigured (i.e. missing DI registration that can't be resolved when the resolver.Props gets fired up) - crashes immediately;
  2. Actor hits its "10 crashes within 1s and die" limit on the SupervisionStrategy, gets killed off by the Shard
  3. Shard notices that the remembered-entity actor is dead, re-creates it; and
  4. The cycle repeats, creating millions of errors until human intervention arrives.

Expected behavior

IMHO, the remember-entities system should not bypass the supervision system - if the supervisor recommends perma-death to a repeatedly failing actor, we need some way of honoring that and un-remembering the actor.

Actual behavior

Infinite churn between the remember-entities system and the restarting actor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant