From 56e2ad2dcee8013dd11860f8ab35ba3b303b55fa Mon Sep 17 00:00:00 2001 From: Shweta Yakkali Date: Thu, 14 Feb 2019 00:22:13 -0800 Subject: [PATCH] HDFS-14262. [SBN read] Make Log.WARN message in GlobalStateIdContext more informative. Contributed by Shweta Yakkali. --- .../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 b410a8e5d84..2e38d528fe4 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 @@ -149,8 +149,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: " + + clientStateId + " is greater than the server stateId: " + + serverStateId + " This is unexpected. " + + "Resetting client stateId to server stateId"); return serverStateId; } if (HAServiceState.OBSERVER.equals(namesystem.getState()) &&