Repository: hbase Updated Branches: refs/heads/branch-1 d34e65327 -> 4377e1661
HBASE-16054 OutOfMemory exception when using AsyncRpcClient with encryption (Colin Ma) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4377e166 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4377e166 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4377e166 Branch: refs/heads/branch-1 Commit: 4377e16619549820cdcd0d0a321f7cda23c8b5e4 Parents: d34e653 Author: tedyu <[email protected]> Authored: Mon Jun 20 07:31:07 2016 -0700 Committer: tedyu <[email protected]> Committed: Mon Jun 20 07:31:07 2016 -0700 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/security/SaslClientHandler.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/4377e166/hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslClientHandler.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslClientHandler.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslClientHandler.java index c79cde7..4c8990d 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslClientHandler.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslClientHandler.java @@ -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);
