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