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

Member.UpNumber fix #1799

Merged
merged 1 commit into from
Mar 17, 2016
Merged

Member.UpNumber fix #1799

merged 1 commit into from
Mar 17, 2016

Conversation

zbynek001
Copy link
Contributor

Fixes issue #1784.

Member.UpNumber is not being propagated across cluster
MemberAgeComparer is sorting in a reverse order then it should

{
return new Member(uniqueAddress, 0, status, roles);
return new Member(uniqueAddress, upNumber, status, roles);
Copy link
Member

Choose a reason for hiding this comment

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

Oh wow, nice catch. I could see this being responsible for some fun issues with Cluster rejoin scenarios too.

@Aaronontheweb
Copy link
Member

Looks like the timestamp on this commit is 29 days old, so it didn't show up on TeamCity - would you mind changing the timestamp on your commit? http://stackoverflow.com/a/31540373/377476

This will allow our CI system to scoop it up. Great job @zbynek001 👍

@Aaronontheweb
Copy link
Member

This is ready for merge once CI passes - it fixes an obvious bug in Akka.Cluster but the test suite might reveal others, and possibly faulty assumptions with the test suite.

ActorPath operator / fix for empty element
ClusterSharding MemberAgeComparer reverse order
@@ -254,7 +254,8 @@ public bool Equals(ActorPath other)
var a = path;
foreach (string element in name)
{
a = a / element;
if(!string.IsNullOrEmpty(element))
a = a / element;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've also added fix for ActorPath operator / used in singleton proxy. This way it's also handled in akka

Aaronontheweb added a commit that referenced this pull request Mar 17, 2016
@Aaronontheweb Aaronontheweb merged commit 5927cde into akkadotnet:dev Mar 17, 2016
@zbynek001 zbynek001 deleted the singletonfix branch March 20, 2016 12:11
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