-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-24564: Make RS abort call idempotent #1905
Conversation
🎊 +1 overall
This message was automatically generated. |
@@ -2475,13 +2475,21 @@ public RSRpcServices getRSRpcServices() { | |||
*/ | |||
@Override | |||
public void abort(String reason, Throwable cause) { | |||
synchronized (this) { |
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.
An AtomicBoolean with CAS is enough?
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.
Okay. Used synchronized to keep the changes minimal. But CAS is good too, changed it.
Signed-off-by: Duo Zhang <zhangduo@apache.org>
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
No description provided.