diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index dd68850f075..a411cf09bdc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1787,6 +1787,9 @@ Release 2.8.0 - UNRELEASED HDFS-9839. Reduce verbosity of processReport logging. (Arpit Agarwal) + HDFS-7452. skip StandbyException log for getCorruptFiles() + (Bramha Reddy Battula via vinayakumarb) + Release 2.7.3 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java index db5e48c46f6..9c27355d2bf 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java @@ -6296,6 +6296,10 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean, list.add(c.toString()); } } + } catch (StandbyException e) { + if (LOG.isDebugEnabled()) { + LOG.debug("Get corrupt file blocks returned error: " + e.getMessage()); + } } catch (IOException e) { LOG.warn("Get corrupt file blocks returned error: " + e.getMessage()); }