HBASE-16054 OutOfMemory exception when using AsyncRpcClient with encryption (Colin Ma)
This commit is contained in:
parent
d34e65327e
commit
4377e16619
|
@ -331,6 +331,8 @@ public class SaslClientHandler extends ChannelDuplexHandler {
|
|||
ByteBuf in = (ByteBuf) msg;
|
||||
byte[] unwrapped = new byte[in.readableBytes()];
|
||||
in.readBytes(unwrapped);
|
||||
// release the memory
|
||||
in.release();
|
||||
|
||||
try {
|
||||
saslToken = saslClient.wrap(unwrapped, 0, unwrapped.length);
|
||||
|
|
Loading…
Reference in New Issue