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

Akka.Cluster.Tools: deprecate ClustersSingletonManagerSettings.ConsiderAppVersion #7302

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Jul 25, 2024

Changes

Cleanup from PR #7298

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Copy link
Member Author

@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.

Detailed my changes

if (settings.ConsiderAppVersion)
#pragma warning restore CS0618 // Type or member is obsolete
{
Log.Warning("As of Akka.NET v1.5.27, The 'ConsiderAppVersion' setting is no longer supported and will " +
Copy link
Member Author

Choose a reason for hiding this comment

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

Add a warning for users who had ConsiderAppVersion enabled - it was disabled by default, so it shouldn't affect too many people.

@@ -188,7 +189,9 @@ private static string RoleOption(string role)
RemovalMargin = removalMargin;
HandOverRetryInterval = handOverRetryInterval;
LeaseSettings = leaseSettings;
#pragma warning disable CS0618 // Type or member is obsolete
ConsiderAppVersion = considerAppVersion;
Copy link
Member Author

Choose a reason for hiding this comment

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

Mark the setting as obsolete - it's already not getting used.

Copy link
Member Author

Choose a reason for hiding this comment

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

The rest of the code changes in this file are fixing a few linger nullability issues and cleaning up TBD XML-DOC comments.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) July 25, 2024 18:57
@Aaronontheweb
Copy link
Member Author

A remember-entities spec failed - I'll have to dig into that one later.

@Aaronontheweb Aaronontheweb merged commit 6a81fd3 into akkadotnet:dev Jul 25, 2024
10 of 12 checks passed
@Aaronontheweb Aaronontheweb deleted the cluster-singleton-appversion-deprecate branch July 25, 2024 19:09
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.

2 participants