-
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-24877 addendum: additional checks to avoid one extra possible race control in the initialize loop #2400
Conversation
…ace control in the initialize loop
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Ping @Apache9 , new commit addressing comments from PR 2399, together with additional test ensuring we don't block the main thread if initialization keeps failing. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
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.
Let's try it.
BTW, testAbortTrueOnError is flaky, could the patch here fix the problem? I haven't look into the details yet.
Yeah, I believe it fixes it. Had done several runs and didn't get any failure. Also run latest UT failures, locally, but all passed for me, so I think those are unrelated. |
(t,e) -> { | ||
startupOngoing.set(true); | ||
initThread = new Thread(this::initialize); | ||
Threads.setDaemonThreadRunning(initThread, |
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.
nit: indentation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Latest failures seems unrelated. Merging it now. |
…ace control in the initialize loop (apache#2400) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Josh Elser <elserj@apache.org>
@@ -416,6 +416,17 @@ public synchronized UUID getPeerUUID() { | |||
|
|||
} | |||
|
|||
public static class FaultyReplicationEndpoint extends DoNothingReplicationEndpoint { |
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.
Bumping into this during rebase of HBASE-18070 branch. If count is not used, just remove it from this class?
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.
Yeah, I guess it's a left over from previous commits on this same PR.
No description provided.