Skip to content
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

Corrected name assigned to a singleton instance. #511

Closed
wants to merge 2 commits into from

Conversation

object
Copy link

@object object commented Nov 6, 2024

Changes

This PR resolves #509. Assuming that akka.cluster.singleton.singleton-name = singleton and the singleton is named my_singleton, an instance of a cluster singleton actor should have path //user/my_singleton/singleton, but extension methods WithSingleton and WithSingletonProxy assigned it to //user/my_singleton/my_singleton. This PR fixes this error.

@Aaronontheweb
Copy link
Member

As long as this doesn't break existing Akka.Hosting applications by changing the route of the singleton actor when it's being messaged via ClusterSingletonProxy instances I think this should be ok. I'll check the test suite to see if it covers that.

@Aaronontheweb
Copy link
Member

Because the problem you can run into is that during an incremental upgrade to an existing Akka.Cluster application, this can temporarily break messaging.

@Aaronontheweb
Copy link
Member

Superseded via #520

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

Successfully merging this pull request may close these issues.

WithSingleton extension method ignores singleton name specified in Akka HOCON
2 participants