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.Singleton: log the correct oldest member on transition #7309

Merged

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Aug 1, 2024

Changes

Prefer the OldestChangedBuffer.OldestChanged.PreviousOldest value when it's available - fixes a leftover bug from the #7298 implementation.

Checklist

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

…tion

Prefer the `OldestChangedBuffer.OldestChanged.PreviousOldest` value when it's available
@@ -836,7 +896,8 @@ private void InitializeFSM()
_oldestChangedReceived = true;
if (oldestChanged.NewOldest != null && oldestChanged.NewOldest.Equals(_selfUniqueAddress))
{
Log.Info("Younger observed OldestChanged: [{0} -> myself]", youngerData.Oldest.Head()?.Address);
Log.Info("Younger observed OldestChanged: [{0} -> myself]",
Copy link
Member Author

Choose a reason for hiding this comment

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

Actual bugfix here - the rest are all formatter-driven changes.

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

@Arkatufus Arkatufus enabled auto-merge (squash) August 1, 2024 17:36
@Arkatufus Arkatufus merged commit 177a7c9 into akkadotnet:dev Aug 1, 2024
12 checks passed
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