hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-17798 RpcServer.Listener.Reader can abort due to CancelledKeyException (Guangxu Cheng)
Date Tue, 21 Mar 2017 15:06:41 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 b973d3fd4 -> 9726c7168


HBASE-17798 RpcServer.Listener.Reader can abort due to CancelledKeyException (Guangxu Cheng)


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

Branch: refs/heads/branch-1
Commit: 9726c71681c0b8b22e83b056102803646b8d50c2
Parents: b973d3f
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Mar 21 08:06:56 2017 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Mar 21 08:06:56 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9726c716/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
index 871ea65..b5cd3e2 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
@@ -721,7 +721,8 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver
{
             }
           } catch (InterruptedException e) {
             LOG.debug("Interrupted while sleeping");
-            return;
+          } catch (CancelledKeyException e) {
+            LOG.error(getName() + ": CancelledKeyException in Reader", e);
           } catch (IOException ex) {
             LOG.info(getName() + ": IOException in Reader", ex);
           }


Mime
View raw message