[
https://issues.apache.org/jira/browse/HBASE-16160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366671#comment-15366671
]
Gary Helmling commented on HBASE-16160:
---------------------------------------
The fix looks reasonable to me, but the added test is largely a copy-n-paste of
TestGenerateDelegationToken, with a modification to the config and an added
test.
Can you please refactor the test case? Either find a way to add it in to the
existing TestGenerateDelegationToken class or else refactor this and
TestGenerateDelegationToken to share a common base for the configuration and
cluster setup/teardown.
> Get the UnsupportedOperationException when using delegation token with
> encryption
> ---------------------------------------------------------------------------------
>
> Key: HBASE-16160
> URL: https://issues.apache.org/jira/browse/HBASE-16160
> Project: HBase
> Issue Type: Bug
> Reporter: Colin Ma
> Assignee: Colin Ma
> Attachments: HBASE-16160.001.patch
>
>
> Using delegation token with encryption, when do the Put operation, will get
> the following exception:
> [RpcServer.FifoWFPBQ.priority.handler=5,queue=1,port=48345]
> ipc.CallRunner(161):
> RpcServer.FifoWFPBQ.priority.handler=5,queue=1,port=48345: caught:
> java.lang.UnsupportedOperationException
> at java.nio.ByteBuffer.array(ByteBuffer.java:959)
> at
> org.apache.hadoop.hbase.ipc.BufferChain.getBytes(BufferChain.java:66)
> at
> org.apache.hadoop.hbase.ipc.RpcServer$Call.wrapWithSasl(RpcServer.java:547)
> at
> org.apache.hadoop.hbase.ipc.RpcServer$Call.setResponse(RpcServer.java:467)
> at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:140)
> at
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:189)
> at
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:169)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)