This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 49ddd8a  HDFS-14231. DataXceiver#run() should not log exceptions 
caused by InvalidToken exception as an error. Contributed by Kitti Nanasi.
49ddd8a is described below

commit 49ddd8a6ed5b40d12defb0771b4c8b53d4ffde3f
Author: Kitti Nanasi <[email protected]>
AuthorDate: Tue Feb 5 15:13:14 2019 -0800

    HDFS-14231. DataXceiver#run() should not log exceptions caused by 
InvalidToken exception as an error. Contributed by Kitti Nanasi.
    
    Signed-off-by: Wei-Chiu Chuang <[email protected]>
---
 .../main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 0bb1987..53d650d 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
@@ -313,7 +313,8 @@ class DataXceiver extends Receiver implements Runnable {
         } else {
           LOG.info("{}; {}", s1, t.toString());
         }
-      } else if (t instanceof InvalidToken) {
+      } else if (t instanceof InvalidToken ||
+          t.getCause() instanceof InvalidToken) {
         // The InvalidToken exception has already been logged in
         // checkAccess() method and this is not a server error.
         LOG.trace(s, t);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to