[ 
https://issues.apache.org/jira/browse/HBASE-10527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13902560#comment-13902560
 ] 

Andrew Purtell commented on HBASE-10527:
----------------------------------------

TestTokenAuthentication#testTokenCreation also fails, so the response mismatch 
exception seems legit if the token and secret manager are returning different 
passwords:

{noformat}
Failed tests: 
testTokenCreation(org.apache.hadoop.hbase.security.token.TestTokenAuthentication):
 Token password and password from secret manager should match
{noformat}

Looking at this test case, we get a token, then check its password byte[] 
corresponds to the password byte[] returned if looking up the password using 
the AuthenticationTokenIdentifier from the AuthenticationTokenSecretManager. 
The AuthenticationTokenSecretManager generates the password at each lookup by 
computing the HMAC of the token identifier using its secret key and returning 
the output as password. Something about that is not stable here.

> TestTokenAuthentication fails with the IBM JDK
> ----------------------------------------------
>
>                 Key: HBASE-10527
>                 URL: https://issues.apache.org/jira/browse/HBASE-10527
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.0
>         Environment: IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 
> Compressed References 20131114_175264 (JIT enabled, AOT enabled)
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>         Attachments: 
> org.apache.hadoop.hbase.security.token.TestTokenAuthentication-output.txt.gz
>
>
> "DIGEST-MD5: digest response format violation. Mismatched response."
> The failure trace:
> {noformat}
> 2014-02-13 15:41:00,449 WARN  [RpcServer.reader=1,port=54751] 
> ipc.RpcServer$Listener(794): RpcServer.listener,port=54751: count of bytes 
> read: 0
> javax.security.sasl.SaslException: DIGEST-MD5: digest response format 
> violation. Mismatched response.
>         at 
> com.ibm.security.sasl.digest.DigestMD5Server.validateClientResponse(DigestMD5Server.java:614)
>         at 
> com.ibm.security.sasl.digest.DigestMD5Server.evaluateResponse(DigestMD5Server.java:234)
>         at 
> org.apache.hadoop.hbase.ipc.RpcServer$Connection.saslReadAndProcess(RpcServer.java:1315)
>         at 
> org.apache.hadoop.hbase.ipc.RpcServer$Connection.readAndProcess(RpcServer.java:1501)
>         at 
> org.apache.hadoop.hbase.ipc.RpcServer$Listener.doRead(RpcServer.java:790)
>         at 
> org.apache.hadoop.hbase.ipc.RpcServer$Listener$Reader.doRunLoop(RpcServer.java:581)
>         at 
> org.apache.hadoop.hbase.ipc.RpcServer$Listener$Reader.run(RpcServer.java:556)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1170)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:640)
>         at java.lang.Thread.run(Thread.java:853)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to