Duo Zhang created HBASE-28312:
---------------------------------
Summary: The bad auth exception can not be passed to client rpc
calls properly
Key: HBASE-28312
URL: https://issues.apache.org/jira/browse/HBASE-28312
Project: HBase
Issue Type: Bug
Components: rpc
Reporter: Duo Zhang
Assignee: Duo Zhang
Found this when implementing HBASE-25051.
Basically there are 2 problems:
# IPCUtil.isFatalConnectionException only checks whether class name matches, so
if we use a sub class for FatalConnectionException, it will return false which
makes the logic incorrect.
# In BlockingRpcConnection, we will first check whether there is a call with
the id but since we will pass -1 as call id for bad preamble header, we will
return earlier without actually checking the error response.
This will not introduce big trouble in production as the call will still fail
with connection closed exception, but still worth to fix, anyway.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)