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:
parent
efe116f11a
commit
d0fb4bd783
|
@ -609,7 +609,11 @@ class BlockingRpcConnection extends RpcConnection implements Runnable {
|
||||||
// pending calls map.
|
// pending calls map.
|
||||||
try {
|
try {
|
||||||
call.callStats.setRequestSizeBytes(write(this.out, requestHeader, call.param, cellBlock));
|
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);
|
closeConn(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue