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

skip raising false alert when the coordinator looses leadership #1224

Merged
merged 1 commit into from
Apr 7, 2015

Conversation

nishantmonu51
Copy link
Member

skip raising false alert when the coordinator looses leadership
fixes #1210

skip doing false alert when the coordinator looses leadership
@@ -86,6 +86,7 @@ private static void executeCallbacks(List<LoadPeonCallback> callbacks)
private final Object lock = new Object();

private volatile SegmentHolder currentlyProcessing = null;
private boolean stopped = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be volatile?

Copy link
Member Author

Choose a reason for hiding this comment

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

all reads and writes are done within lock.

xvrl added a commit that referenced this pull request Apr 7, 2015
skip raising false alert when the coordinator looses leadership
@xvrl xvrl merged commit 44e23a8 into apache:master Apr 7, 2015
@xvrl xvrl deleted the alert-improve branch April 7, 2015 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

race condition in coordinator
3 participants