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

Forming of an Akka.Cluster is not working anymore after upgrading to 0.3.0-beta1 of Akka.Discovery.Azure #924

Closed
wesselkranenborg opened this issue Oct 10, 2022 · 2 comments · Fixed by #925
Assignees
Labels

Comments

@wesselkranenborg
Copy link

Version Information
Akka.Discovery.Azure 0.3.0-beta1
Akka.Cluster 1.4.43

Describe the bug
The Akka.Cluster is not being formed.

To Reproduce
Have a working version of the code running with 0.2.5-beta4, upgrade to 0.3.0-beta1 without code changes and it will not form a cluster again (have tested it in Azure Container Apps)

Expected behavior
To form a cluster.

Actual behavior
In the logging I get the following logrules:

[22/10/10-03:21:28.8920][akka.tcp://service@10.250.1.19:12552/system/bootstrapCoordinator][akka://service/system/bootstrapCoordinator][0042]: Looking up [Lookup(service, , tcp)]
[22/10/10-03:21:28.8992][akka.tcp://service@10.250.1.19:12552/system/bootstrapCoordinator][akka://service/system/bootstrapCoordinator][0006]: Located service members based on: [Lookup(service, , tcp)]: [ResolvedTarget(, 18558, 10.250.0.200), ResolvedTarget(, 18558, 10.250.1.19), ResolvedTarget(, 18558, 10.250.1.38)], filtered to []
[22/10/10-03:21:28.9326][SelfAwareJoinDecider (akka://service)][akka://service/system/bootstrapCoordinator][0035]: Discovered [0] contact points, confirmed [0], which is less than the required [1], retrying
[22/10/10-03:21:29.0573][SelfAwareJoinDecider (akka://service)][akka://service/system/bootstrapCoordinator][0030]: Discovered [0] contact points, confirmed [0], which is less than the required [1], retrying
[22/10/10-03:21:29.3729][SelfAwareJoinDecider (akka://service)][akka://service/system/bootstrapCoordinator][0038]: Discovered [0] contact points, confirmed [0], which is less than the required [1], retrying

Additional context
After downgrading from 0.3.0-beta1 to 0.2.5-beta4 it started to work again.

@Aaronontheweb
Copy link
Member

Thanks @wesselkranenborg - we'll look into this right away

@Arkatufus
Copy link
Contributor

Arkatufus commented Oct 10, 2022

This is caused by a bug in ClusterBootstrapSettings because it is getting the wrong Akka.Management fallback port, causing cluster bootstrap to filter out contact points.
For now, you can use this as a workaround to bypass the erroneous contact point filtering:

builder.WithClusterBootstrap(setup =>
{
    setup.ContactPoint = new ContactPointSetup
    {
        FilterOnFallbackPort = false,
    };
});

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

Successfully merging a pull request may close this issue.

3 participants