diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java index c2cf76e8b4..fee16b312a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java @@ -312,6 +312,12 @@ public void run() { } else { LOG.info(s1 + "; " + t); } + } else if (t instanceof InvalidToken) { + // The InvalidToken exception has already been logged in + // checkAccess() method and this is not a server error. + if (LOG.isTraceEnabled()) { + LOG.trace(s, t); + } } else { LOG.error(s, t); }