hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [01/19] hadoop git commit: HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed by Pan Yuxuan. [Forced Update!]
Date Wed, 31 Aug 2016 15:05:21 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HADOOP-13341 af9f0e7bf -> 536ad247b (forced update)


HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed
by Pan Yuxuan.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c4ee6915
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c4ee6915
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c4ee6915

Branch: refs/heads/HADOOP-13341
Commit: c4ee6915a14e00342755d7cdcbf2d61518f306aa
Parents: af50860
Author: Wei-Chiu Chuang <weichiu@apache.org>
Authored: Tue Aug 30 10:43:20 2016 -0700
Committer: Wei-Chiu Chuang <weichiu@apache.org>
Committed: Tue Aug 30 10:43:20 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hdfs/server/datanode/DataXceiver.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c4ee6915/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java
----------------------------------------------------------------------
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 c2cf76e..fee16b3 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 @@ class DataXceiver extends Receiver implements Runnable {
         } 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);
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message