HBASE-11705 callQueueSize should be decremented in a fail-fast scenario (Esteban Gutierrez)
This commit is contained in:
parent
3c03dcb1b9
commit
c2bfc64719
|
@ -110,7 +110,6 @@ public class CallRunner {
|
||||||
RequestContext.clear();
|
RequestContext.clear();
|
||||||
}
|
}
|
||||||
RpcServer.CurCall.set(null);
|
RpcServer.CurCall.set(null);
|
||||||
this.rpcServer.addCallSize(call.getSize() * -1);
|
|
||||||
// Set the response for undelayed calls and delayed calls with
|
// Set the response for undelayed calls and delayed calls with
|
||||||
// undelayed responses.
|
// undelayed responses.
|
||||||
if (!call.isDelayed() || !call.isReturnValueDelayed()) {
|
if (!call.isDelayed() || !call.isReturnValueDelayed()) {
|
||||||
|
@ -139,6 +138,9 @@ public class CallRunner {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
RpcServer.LOG.warn(Thread.currentThread().getName()
|
RpcServer.LOG.warn(Thread.currentThread().getName()
|
||||||
+ ": caught: " + StringUtils.stringifyException(e));
|
+ ": caught: " + StringUtils.stringifyException(e));
|
||||||
|
} finally {
|
||||||
|
// regardless if succesful or not we need to reset the callQueueSize
|
||||||
|
this.rpcServer.addCallSize(call.getSize() * -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue