hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [4/9] hbase git commit: HBASE-19215 Incorrect exception handling on the client causes incorrect call timeouts and byte buffer allocations on the server
Date Tue, 14 Nov 2017 02:21:39 GMT
HBASE-19215 Incorrect exception handling on the client causes incorrect call timeouts and byte
buffer allocations on the server

Signed-off-by: Andrew Purtell <apurtell@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4a3183dc
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4a3183dc
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4a3183dc

Branch: refs/heads/branch-1.4
Commit: 4a3183dc91017911ef2f1d52e29a7a42cec62c37
Parents: d2a8436
Author: Abhishek Singh Chouhan <achouhan@apache.org>
Authored: Mon Nov 13 17:16:31 2017 +0530
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Mon Nov 13 16:59:53 2017 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4a3183dc/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java
index 6645694..d5cf6a2 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java
@@ -551,7 +551,11 @@ class BlockingRpcConnection extends RpcConnection implements Runnable
{
     // pending calls map.
     try {
       call.callStats.setRequestSizeBytes(write(this.out, requestHeader, call.param, cellBlock));
-    } catch (IOException e) {
+    } catch (Throwable t) {
+      if(LOG.isTraceEnabled()) {
+        LOG.trace("Error while writing call, call_id:" + call.id, t);
+      }
+      IOException e = IPCUtil.toIOE(t);
       closeConn(e);
       return;
     }


Mime
View raw message