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-28377 Fallback to simple is broken for blocking rpc client #5690
Conversation
The fix itself is very simple, just set The most important changes are the newly added tests in AbstractTestSecureIPC. Also changed to throw |
@bbeaudreault We need to fix this before landing HBASE-28321. |
I'm not an expert on sasl. It makes some sense that if we fallback to simple, we don't need a saslRpcClient. But can you explain a little more what the issue was and why this change fixes it? |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
It is because here hbase/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java Line 548 in b5175ba
When writing out connection header, we will test whether saslRpcClient is null to determine whether to do encryption, so if we want to fallback to simple, we need to set it saslRpcClient to null, otherwise we will get an exception like this:
|
Let me fix the failed UT, seems we could also have other types of exceptions when server close the connection. |
🎊 +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.
Thanks for the explanation. Lgtm
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> (cherry picked from commit 7bc07a6)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> (cherry picked from commit 7bc07a6)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> (cherry picked from commit 7bc07a6)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> (cherry picked from commit 7bc07a6)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> (cherry picked from commit 7bc07a6)
No description provided.