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

added spec to validate programmatic ActorSystem override #4473

Conversation

Aaronontheweb
Copy link
Member

Minor PR to address a gap in testing - needed to validate that ActorSystemSetup can successfully override the ActorRefProvider under the covers.

Added the spec to Akka.Cluster.Tests so we could override using the ClusterActorRefProvider.

@@ -80,7 +80,7 @@ public Settings(ActorSystem system, Config config, ActorSystemSetup setup)

var providerSelectionSetup = Setup.Get<BootstrapSetup>()
.FlatSelect(_ => _.ActorRefProvider)
.Select(_ => _.Identifier)
.Select(_ => _.Fqn)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a bug here - caused us not to load any ProviderSelection.Custom instances correctly

internal const string RemoteActorRefProvider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote";
internal const string ClusterActorRefProvider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster";

public sealed class Local : ProviderSelection
{
private Local() : base("local", typeof(LocalActorRefProvider).FullName, false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the FQN here to match the expected Akka.NET format

@Aaronontheweb Aaronontheweb added this to the 1.4.8 milestone Jun 16, 2020
@Aaronontheweb Aaronontheweb merged commit d7d8df4 into akkadotnet:dev Jun 16, 2020
@Aaronontheweb Aaronontheweb deleted the testing/ActorSystemSetup-override-HOCON branch June 16, 2020 14:11
This was referenced Jun 17, 2020
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.

1 participant