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

[Async TestKit] Convert Akka.Cluster.Tests to async - ClusterSpec #5984

Merged
merged 3 commits into from Jun 7, 2022

Conversation

Arkatufus
Copy link
Contributor

Changes

Change how Cluster.JoinAsync() and Cluster.JoinSeedNodesAsync() work, does not rely on MemberRemoved anymore, work on a fixed timer instead, configurable via the akka.cluster.seed-node-timeout HOCON settings.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

One minor change needed - just need to use the right timeout value

var completion = new TaskCompletionSource<NotUsed>(TaskCreationOptions.RunContinuationsAsynchronously);

var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(token);
timeoutCts.CancelAfter(Settings.SeedNodeTimeout);
Copy link
Member

Choose a reason for hiding this comment

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

Should be join-retry timeout

Copy link
Contributor Author

Choose a reason for hiding this comment

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

akka.cluster.retry-unsuccessful-join-after?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Arkatufus Arkatufus mentioned this pull request Jun 7, 2022
@Aaronontheweb
Copy link
Member

LGTM

@Aaronontheweb Aaronontheweb merged commit 9c3aa67 into akkadotnet:dev Jun 7, 2022
@Arkatufus Arkatufus deleted the async_testkit/cluster_spec branch February 27, 2023 17:32
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.

None yet

2 participants