HBASE-16159 OutOfMemory exception when using AsyncRpcClient with encryption to read rpc response (Colin Ma)
This commit is contained in:
parent
fe75edb556
commit
af9422c04a
|
@ -216,6 +216,8 @@ public class SaslClientHandler extends ChannelDuplexHandler {
|
|||
writeSaslToken(ctx, saslToken);
|
||||
}
|
||||
}
|
||||
// release the memory
|
||||
in.release();
|
||||
|
||||
if (saslClient.isComplete()) {
|
||||
String qop = (String) saslClient.getNegotiatedProperty(Sasl.QOP);
|
||||
|
@ -246,6 +248,8 @@ public class SaslClientHandler extends ChannelDuplexHandler {
|
|||
}
|
||||
saslToken = new byte[length];
|
||||
in.readBytes(saslToken);
|
||||
// release the memory
|
||||
in.release();
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue