hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weic...@apache.org
Subject [hadoop] branch branch-3.0 updated: HDFS-14231. DataXceiver#run() should not log exceptions caused by InvalidToken exception as an error. Contributed by Kitti Nanasi.
Date Tue, 05 Feb 2019 23:16:01 GMT
This is an automated email from the ASF dual-hosted git repository.

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


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

commit ad131757f26dcb00bd702e1b1f780cdb69144755
Author: Kitti Nanasi <knanasi@cloudera.com>
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 <weichiu@apache.org>
    (cherry picked from commit 49ddd8a6ed5b40d12defb0771b4c8b53d4ffde3f)
    (cherry picked from commit 38541b23753c5d0e2cb9baf1d2da536f846dc38c)
    (cherry picked from commit c25b641cec8aca9c16759d5e392ffbc27a158a67)
---
 .../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 d0ded89..640eeb2 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,7 +312,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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message