hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weic...@apache.org
Subject hadoop git commit: HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed by Pan Yuxuan.
Date Tue, 30 Aug 2016 17:57:36 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 f70f522e8 -> abbd95b79


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

(cherry picked from commit c4ee6915a14e00342755d7cdcbf2d61518f306aa)


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

Branch: refs/heads/branch-2
Commit: abbd95b790c1a7adcd94f6a8527cbcb879289269
Parents: f70f522
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:44:27 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/abbd95b7/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 c5cc36c..7c36ab1 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
@@ -311,6 +311,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