HBASE-12537 HBase should log the remote host on replication error (Stack)

This commit is contained in:
Enis Soztutar 2014-12-01 20:10:20 -08:00
parent a5169d422b
commit e2631ce70c
1 changed files with 4 additions and 2 deletions

View File

@ -1715,7 +1715,8 @@ public class RpcServer implements RpcServerInterface {
responder, totalRequestSize, null);
ByteArrayOutputStream responseBuffer = new ByteArrayOutputStream();
setupResponse(responseBuffer, callTooBig, new CallQueueTooBigException(),
"Call queue is full, is hbase.ipc.server.max.callqueue.size too small?");
"Call queue is full on " + getListenerAddress() +
", is hbase.ipc.server.max.callqueue.size too small?");
responder.doRespond(callTooBig);
return;
}
@ -1741,7 +1742,8 @@ public class RpcServer implements RpcServerInterface {
buf, offset, buf.length);
}
} catch (Throwable t) {
String msg = "Unable to read call parameter from client " + getHostAddress();
String msg = getListenerAddress() + " is unable to read call parameter from client " +
getHostAddress();
LOG.warn(msg, t);
// probably the hbase hadoop version does not match the running hadoop version