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>
This commit is contained in:
Abhishek Singh Chouhan 2017-11-13 17:16:31 +05:30 committed by Andrew Purtell
parent efe116f11a
commit d0fb4bd783
1 changed files with 5 additions and 1 deletions

View File

@ -609,7 +609,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;
}