-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-25166 MobFileCompactionChore is closing the master's shared clu… #2514
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
Conversation
|
|
||
| Admin admin = null; | ||
| try { | ||
| Connection conn = master.getConnection(); |
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 feel like we've run into this a few times recently.
Any thoughts about whether it's a good idea to make the ShortCircuitingClusterConnection not close itself (unless we can know that we're in the process of shutting down)?
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.
like have it log a debug/info for someone trying to call the normal close but don't do it, then have inShutdownClose to actually close? that sounds like a good idea for a follow-on?
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.
that sounds like a good idea for a follow-on?
Fine to think about as follow-on. Just wanted to ask the question while it was fresh :D
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.
yes, we should guard-rail the internal connection (in master or RS) from being closed by any shared services by probably wrapping it with SharedConnection which throws an exception when close() is called out (the same way we share it with users through coprocessor ). I'll raise another JIRA for it.
Thanks guys for the ideas and review.
|
🎊 +1 overall
This message was automatically generated. |
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCompactionChore.java
Outdated
Show resolved
Hide resolved
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
anoopsjohn
left a comment
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.
Infact there is nothing to close in AdminOverAsyncAdmin. Ya its Closeable and we keep this way.
+1
|
💔 -1 overall
This message was automatically generated. |
virajjasani
left a comment
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.
+1
|
🎊 +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. |
…ster connection (apache#2514) Author: Ankit Singhal <ankit@apache.org> Reason: Bug REF: CDPD-18512 (cherry picked from commit 7d00e43) Change-Id: I57737c92260b74b0682b3b592b35bf24c5dd9319
…ster connection (apache#2514) (apache#4826) Co-authored-by: Ankit Singhal <ankit@apache.org> Signed-off-by: Xiaolin Ha <haxiaolin@apache.org> (cherry picked from commit 66873ca)
…ster connection (apache#2514) Change-Id: I240f8294fa2898b0ab784a99660918b9a746da20
…ster connection