-
Notifications
You must be signed in to change notification settings - Fork 694
Do Not Review #7356
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
Do Not Review #7356
Conversation
|
|
||
| Profile[] locProfiles = profiles; // grab current profiles | ||
| for (int i = 0; i < locProfiles.length; i++) { | ||
| if (locProfiles[i].getDistributedMember().getId() == member.getId()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of ==, it should be equals(). Otherwise, it is comparing the references instead of the strings. Or locProfiles[i].getDistributedMember().equals(member) also works.
| ProfileId id = getProfileIdForMember(member); | ||
| logger.warn("Removing profile for member " + member + " profileid = " + id | ||
| + " because we think it is stale"); | ||
| removeId(id, false, false, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am afraid this could potentially remove the non-stale ServerBucketProfile.
when waiting for a new primary will never succeed.
e78680f to
b7fc6a9
Compare
GEODE-10039: Fix to remove a stale profile when waiting for a new primary will never succeed.