From e6bcf95da501d726aaa208ffaa9dfbfd55fe985b Mon Sep 17 00:00:00 2001 From: Mikhail Antonov Date: Fri, 29 Apr 2016 10:25:14 -0700 Subject: [PATCH] HBASE-15551 Make call queue too big exception use servername --- .../main/java/org/apache/hadoop/hbase/ipc/RpcServer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java index 286d1dd0dff..a9093529867 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java @@ -1863,9 +1863,8 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver { responder, totalRequestSize, null, null); ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream(); metrics.exception(CALL_QUEUE_TOO_BIG_EXCEPTION); - InetSocketAddress address = getListenerAddress(); setupResponse(responseBuffer, callTooBig, CALL_QUEUE_TOO_BIG_EXCEPTION, - "Call queue is full on " + (address != null ? address : "(channel closed)") + + "Call queue is full on " + server.getServerName() + ", is hbase.ipc.server.max.callqueue.size too small?"); responder.doRespond(callTooBig); return; @@ -1929,9 +1928,8 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver { ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream(); metrics.exception(CALL_QUEUE_TOO_BIG_EXCEPTION); - InetSocketAddress address = getListenerAddress(); setupResponse(responseBuffer, call, CALL_QUEUE_TOO_BIG_EXCEPTION, - "Call queue is full on " + (address != null ? address : "(channel closed)") + + "Call queue is full on " + server.getServerName() + ", too many items queued ?"); responder.doRespond(call); }