[
https://issues.apache.org/jira/browse/HBASE-23881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17047945#comment-17047945
]
Josh Elser commented on HBASE-23881:
------------------------------------
Some more on the same line of thinking, {{SaslDecoder}} is never invoked,
meaning that the client never even tries to read the response from the server.
I can only hope that there is something subtle I missed in the hbase-example
code :)
{noformat}
2020-02-28 15:51:57,939 INFO [Default-IPC-NioEventLoopGroup-4-6]
ipc.NettyRpcConnection$3(280): Starting sasl negotiation
2020-02-28 15:51:57,940 TRACE [RS-EventLoopGroup-1-6]
ipc.NettyRpcServerRequestDecoder(52): Connection /192.168.2.28:64262; # active
connections=3
2020-02-28 15:51:57,966 TRACE [Default-IPC-NioEventLoopGroup-4-6]
security.NettyHBaseSaslRpcClientHandler(78): Sending token size=26 from
initSASLContext.
2020-02-28 15:51:57,966 INFO [Default-IPC-NioEventLoopGroup-4-6]
security.NettyHBaseSaslRpcClientHandler(84): saslRpcClient.isComplete? true
2020-02-28 15:51:57,967 INFO [Default-IPC-NioEventLoopGroup-4-6]
security.NettyHBaseSaslRpcClient(52): SASL client context established.
Negotiated QoP auth
2020-02-28 15:51:57,967 INFO [Default-IPC-NioEventLoopGroup-4-6]
ipc.NettyRpcConnection$2(205): SaslNego is complete:
DefaultPromise@67cec9fc(success: true)
2020-02-28 15:51:57,967 INFO [Default-IPC-NioEventLoopGroup-4-6]
ipc.NettyRpcConnection$2(207): SaslNego is successful: future=true {noformat}
The client sends the initiatlization, but appears to never get back the
challenge and goes directly to thinking that the handshake was successful. Need
to add some more logging in here.
> TestShadeSaslAuthenticationProvider failures
> --------------------------------------------
>
> Key: HBASE-23881
> URL: https://issues.apache.org/jira/browse/HBASE-23881
> Project: HBase
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0, 2.3.0
> Reporter: Bharath Vissapragada
> Assignee: Josh Elser
> Priority: Major
>
> TestShadeSaslAuthenticationProvider now fails deterministically with the
> following exception..
> {noformat}
> java.lang.Exception: Unexpected exception,
> expected<org.apache.hadoop.hbase.DoNotRetryIOException> but
> was<java.io.IOException>
> at
> org.apache.hadoop.hbase.security.provider.example.TestShadeSaslAuthenticationProvider.testNegativeAuthentication(TestShadeSaslAuthenticationProvider.java:233)
> {noformat}
> The test now fails a different place than before merging HBASE-18095 because
> the RPCs are also a part of connection setup. We might need to rewrite the
> test..
--
This message was sent by Atlassian Jira
(v8.3.4#803005)