You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2016/06/20 14:29:53 UTC

hbase git commit: HBASE-16054 OutOfMemory exception when using AsyncRpcClient with encryption (Colin Ma)

Repository: hbase
Updated Branches:
  refs/heads/master 71c8cd5b1 -> 76419df21


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/76419df2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/76419df2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/76419df2

Branch: refs/heads/master
Commit: 76419df21d168c6fb1d7128ec50332ef5bd90fcb
Parents: 71c8cd5
Author: tedyu <yu...@gmail.com>
Authored: Mon Jun 20 07:29:40 2016 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Mon Jun 20 07:29:40 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/76419df2/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 06d01d7..9b522ae 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
@@ -313,6 +313,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);