HBASE-16708 Expose endpoint Coprocessor name in responseTooSlow log messages (Yi Liang)

This commit is contained in:
Jerry He 2016-11-18 10:56:06 -08:00
parent 72438c0223
commit a8ee83c092
1 changed files with 3 additions and 0 deletions

View File

@ -2250,6 +2250,9 @@ public final class ProtobufUtil {
ClientProtos.MutateRequest r = (ClientProtos.MutateRequest) m; ClientProtos.MutateRequest r = (ClientProtos.MutateRequest) m;
return "region= " + getStringForByteString(r.getRegion().getValue()) + return "region= " + getStringForByteString(r.getRegion().getValue()) +
", row=" + getStringForByteString(r.getMutation().getRow()); ", row=" + getStringForByteString(r.getMutation().getRow());
} else if (m instanceof ClientProtos.CoprocessorServiceRequest) {
ClientProtos.CoprocessorServiceRequest r = (ClientProtos.CoprocessorServiceRequest) m;
return "coprocessorService= " + r.getCall().getServiceName() + ":" + r.getCall().getMethodName();
} }
return "TODO: " + m.getClass().toString(); return "TODO: " + m.getClass().toString();
} }