Uh oh!
There was an error while loading. Please reload this page.
HBASE-27335 HBase shell hang for a minute when quiting - #4737
Conversation
2005hithlj
commented
Aug 27, 2022
@Apache9 sir. Could you take a look? Thanks. |
Apache-HBase
commented
Aug 27, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 27, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 27, 2022
🎊 +1 overall
This message was automatically generated. |
Apache9
commented
Aug 28, 2022
When quiting, we will not close this connection? |
2005hithlj
commented
Aug 28, 2022
@Apache9 sir. Thanks for your review. |
Apache9
commented
Aug 28, 2022
I prefer we first find out why the daemon thread does not quit, because we do not close the connection? Or we have closed the connection but haven't shutdown the thread pool? |
Apache9
commented
Aug 28, 2022
I think the problem is that, we defined a shutdown method in hbase.rb where we close the connection in this method, but we never call it in our code base... I'm not a ruby expert so I'm not sure how to call shutdown when we see 'exit', as seems there is no 'exit' command defined in our code base... |
Apache9
commented
Aug 28, 2022
Apply this to branch-2.5 can make the shell quit immediately when typing 'exit' command, but when calling 'quit' command it will still hang there... I'm not sure how we do we deal with the 'quit' command... |
2005hithlj
commented
Aug 29, 2022
Yes, the 'quit' command is really a difficult thing to deal with. I searched the ruby IRB for info about the 'quit' command, and there is not much info to refer to. |
Apache9
commented
Aug 31, 2022
Anyway, let's apply this PR to fix the problem first. Please open another issue to track the 'releasing resources when quiting IRB' problem @2005hithlj . Thanks. |
2005hithlj
commented
Aug 31, 2022
@Apache9 OK, sir. |
2005hithlj
commented
Aug 31, 2022
I have created an issue to track this issue: |
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 6a7a91a)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 6a7a91a)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 6a7a91a)
https://issues.apache.org/jira/browse/HBASE-27335