This is an automated email from the ASF dual-hosted git repository. shv pushed a commit to branch branch-3.1 in repository https://gitbox.apache.org/repos/asf/hadoop.git
commit e68ccca2d7b16a3238f81b24b0f7108371fbac8e Author: Shweta Yakkali <shwetayakk...@cloudera.com> AuthorDate: Thu Feb 14 00:22:13 2019 -0800 HDFS-14262. [SBN read] Make Log.WARN message in GlobalStateIdContext more informative. Contributed by Shweta Yakkali. --- .../apache/hadoop/hdfs/server/namenode/GlobalStateIdContext.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/GlobalStateIdContext.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/GlobalStateIdContext.java index ca1c813..7d61359 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/GlobalStateIdContext.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/GlobalStateIdContext.java @@ -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()) && --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org