-
Couldn't load subscription status.
- Fork 3.4k
HBASE-27189 NettyServerRpcConnection is not properly closed when the netty channel is closed #4611
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
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
…netty channel is closed
|
Find a simple way to fix the problem first. So let's merge this first to unblock the new releases first. Will work on HBASE-27185 to make the code more stable and clean soon. @apurtell @virajjasani PTAL. Thanks. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
| disposeSasl(); | ||
| channel.close(); | ||
| callCleanupIfNeeded(); |
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.
Hmm not calling this is also a problem, but that's fine we can track that later.
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.
We register close hook, so close the channel will trigger the close hook and call these two methods.
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.
No I didn't mean call to disposeSasl() and callCleanupIfNeeded(). I meant this whole NettyServerRpcConnection#close not getting called is a problem.
Having the channel close hook to dispose sasl is the right thing to do but I think we can simplify this a bit and maybe remove close() from NettyServerRpcConnection or do some better refactoring so that first time readers don't get confused and add more closable stuffs in NettyServerRpcConnection#close.
|
Thanks for the quick turnaround on this @Apache9 ! |
…netty channel is closed (#4611) Signed-off-by: Viraj Jasani <[email protected]> (cherry picked from commit 5bc8670)
…netty channel is closed (#4611) Signed-off-by: Viraj Jasani <[email protected]> (cherry picked from commit 5bc8670)
…netty channel is closed (#4611) Signed-off-by: Viraj Jasani <[email protected]> (cherry picked from commit 5bc8670)
…netty channel is closed (apache#4611) Signed-off-by: Viraj Jasani <[email protected]> (cherry picked from commit 5bc8670) (cherry picked from commit d054c93) Change-Id: I61f8eb8f01bde5ec8576e58922bab2bdbd6e7079
No description provided.