HBASE-17144 Possible offheap read ByteBuffers leak
This commit is contained in:
parent
0b0e857465
commit
a45b3c3533
|
@ -2169,7 +2169,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
||||||
if ((totalRequestSize + callQueueSizeInBytes.sum()) > maxQueueSizeInBytes) {
|
if ((totalRequestSize + callQueueSizeInBytes.sum()) > maxQueueSizeInBytes) {
|
||||||
final Call callTooBig =
|
final Call callTooBig =
|
||||||
new Call(id, this.service, null, null, null, null, this,
|
new Call(id, this.service, null, null, null, null, this,
|
||||||
responder, totalRequestSize, null, null, 0, null);
|
responder, totalRequestSize, null, null, 0, this.callCleanup);
|
||||||
ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream();
|
ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream();
|
||||||
metrics.exception(CALL_QUEUE_TOO_BIG_EXCEPTION);
|
metrics.exception(CALL_QUEUE_TOO_BIG_EXCEPTION);
|
||||||
setupResponse(responseBuffer, callTooBig, CALL_QUEUE_TOO_BIG_EXCEPTION,
|
setupResponse(responseBuffer, callTooBig, CALL_QUEUE_TOO_BIG_EXCEPTION,
|
||||||
|
@ -2227,7 +2227,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
||||||
|
|
||||||
final Call readParamsFailedCall =
|
final Call readParamsFailedCall =
|
||||||
new Call(id, this.service, null, null, null, null, this,
|
new Call(id, this.service, null, null, null, null, this,
|
||||||
responder, totalRequestSize, null, null, 0, null);
|
responder, totalRequestSize, null, null, 0, this.callCleanup);
|
||||||
ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream();
|
ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream();
|
||||||
setupResponse(responseBuffer, readParamsFailedCall, t,
|
setupResponse(responseBuffer, readParamsFailedCall, t,
|
||||||
msg + "; " + t.getMessage());
|
msg + "; " + t.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue