You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sh...@apache.org on 2019/03/11 20:54:31 UTC
[hadoop] branch trunk updated: HDFS-14270.[SBN Read] Add trace
level logging for stateId in RPC Server. Contributed by Shweta Yakkali.
This is an automated email from the ASF dual-hosted git repository.
shv pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4ad295a HDFS-14270.[SBN Read] Add trace level logging for stateId in RPC Server. Contributed by Shweta Yakkali.
4ad295a is described below
commit 4ad295a4f1c202f08e40a57f31c1dc1ade96a4ca
Author: Konstantin V Shvachko <sh...@apache.org>
AuthorDate: Mon Mar 11 13:48:06 2019 -0700
HDFS-14270.[SBN Read] Add trace level logging for stateId in RPC Server. Contributed by Shweta Yakkali.
---
.../hadoop-common/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 23c6351..62e81bc 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 @@ public abstract class Server {
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);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org