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

This commit is contained in:
tedyu 2017-03-21 06:59:29 -07:00
parent 8f4ae0a0dc
commit 1cfd22bf43
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ public class SimpleRpcServer extends RpcServer {
if (running) { // unexpected -- log it
LOG.info(Thread.currentThread().getName() + " unexpectedly interrupted", e);
}
return;
} catch (CancelledKeyException e) {
LOG.error(getName() + ": CancelledKeyException in Reader", e);
} catch (IOException ex) {
LOG.info(getName() + ": IOException in Reader", ex);
}