HDFS-14262. [SBN read] Make Log.WARN message in GlobalStateIdContext more informative. Contributed by Shweta Yakkali.
This commit is contained in:
parent
7a57974f1f
commit
080a421911
|
@ -129,8 +129,10 @@ class GlobalStateIdContext implements AlignmentContext {
|
||||||
long clientStateId = header.getStateId();
|
long clientStateId = header.getStateId();
|
||||||
if (clientStateId > serverStateId &&
|
if (clientStateId > serverStateId &&
|
||||||
HAServiceState.ACTIVE.equals(namesystem.getState())) {
|
HAServiceState.ACTIVE.equals(namesystem.getState())) {
|
||||||
FSNamesystem.LOG.warn("A client sent stateId: " + clientStateId +
|
FSNamesystem.LOG.warn("The client stateId: {} is greater than "
|
||||||
", but server state is: " + serverStateId);
|
+ "the server stateId: {} This is unexpected. "
|
||||||
|
+ "Resetting client stateId to server stateId",
|
||||||
|
clientStateId, serverStateId);
|
||||||
return serverStateId;
|
return serverStateId;
|
||||||
}
|
}
|
||||||
if (HAServiceState.OBSERVER.equals(namesystem.getState()) &&
|
if (HAServiceState.OBSERVER.equals(namesystem.getState()) &&
|
||||||
|
|
Loading…
Reference in New Issue