From 4ad295a4f1c202f08e40a57f31c1dc1ade96a4ca Mon Sep 17 00:00:00 2001 From: Konstantin V Shvachko Date: Mon, 11 Mar 2019 13:48:06 -0700 Subject: [PATCH] HDFS-14270.[SBN Read] Add trace level logging for stateId in RPC Server. Contributed by Shweta Yakkali. --- .../src/main/java/org/apache/hadoop/ipc/Server.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java index 23c6351dbf..62e81bccbe 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java @@ -2594,6 +2594,8 @@ private void processRpcRequest(RpcRequestHeaderProto header, stateId = alignmentContext.receiveRequestState( header, getMaxIdleTime()); call.setClientStateId(stateId); + LOG.trace("Client State ID= {} and Server State ID= {}", + call.getClientStateId(), alignmentContext.getLastSeenStateId()); } } catch (IOException ioe) { throw new RpcServerException("Processing RPC request caught ", ioe);