HBASE-27268 In trace log mode, the client does not print callId/startTime and the server does not print receiveTime (#4710)
Co-authored-by: jay.zhu <jay.zhu@huolala.cn>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 32c135d8a5
)
This commit is contained in:
parent
d073404706
commit
8a10dbf6c4
|
@ -379,8 +379,8 @@ public abstract class AbstractRpcClient<T extends RpcConnection> implements RpcC
|
|||
metrics.updateRpc(call.md, call.param, call.callStats);
|
||||
}
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace(
|
||||
"Call: " + call.md.getName() + ", callTime: " + call.callStats.getCallTimeMs() + "ms");
|
||||
LOG.trace("CallId: {}, call: {}, startTime: {}ms, callTime: {}ms", call.id, call.md.getName(),
|
||||
call.getStartTime(), call.callStats.getCallTimeMs());
|
||||
}
|
||||
if (call.error != null) {
|
||||
if (call.error instanceof RemoteException) {
|
||||
|
|
|
@ -390,9 +390,10 @@ public abstract class RpcServer implements RpcServerInterface, ConfigurationObse
|
|||
int qTime = (int) (startTime - receiveTime);
|
||||
int totalTime = (int) (endTime - receiveTime);
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace(CurCall.get().toString() + ", response " + TextFormat.shortDebugString(result)
|
||||
+ " queueTime: " + qTime + " processingTime: " + processingTime + " totalTime: "
|
||||
+ totalTime);
|
||||
LOG.trace(
|
||||
"{}, response: {}, receiveTime: {}, queueTime: {}, processingTime: {}, totalTime: {}",
|
||||
CurCall.get().toString(), TextFormat.shortDebugString(result),
|
||||
CurCall.get().getReceiveTime(), qTime, processingTime, totalTime);
|
||||
}
|
||||
// Use the raw request call size for now.
|
||||
long requestSize = call.getSize();
|
||||
|
|
Loading…
Reference in New Issue