HDFS-14270.[SBN Read] Add trace level logging for stateId in RPC Server. Contributed by Shweta Yakkali.

This commit is contained in:
Konstantin V Shvachko 2019-03-11 13:48:06 -07:00
parent fa7a0b269a
commit 4ad295a4f1

View File

@ -2594,6 +2594,8 @@ private void processRpcRequest(RpcRequestHeaderProto header,
stateId = alignmentContext.receiveRequestState( stateId = alignmentContext.receiveRequestState(
header, getMaxIdleTime()); header, getMaxIdleTime());
call.setClientStateId(stateId); call.setClientStateId(stateId);
LOG.trace("Client State ID= {} and Server State ID= {}",
call.getClientStateId(), alignmentContext.getLastSeenStateId());
} }
} catch (IOException ioe) { } catch (IOException ioe) {
throw new RpcServerException("Processing RPC request caught ", ioe); throw new RpcServerException("Processing RPC request caught ", ioe);