You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/02/05 23:15:12 UTC
[hadoop] branch branch-3.2 updated: HDFS-14231. DataXceiver#run()
should not log exceptions caused by InvalidToken exception as an error.
Contributed by Kitti Nanasi.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 38541b2 HDFS-14231. DataXceiver#run() should not log exceptions caused by InvalidToken exception as an error. Contributed by Kitti Nanasi.
38541b2 is described below
commit 38541b23753c5d0e2cb9baf1d2da536f846dc38c
Author: Kitti Nanasi <kn...@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 <we...@apache.org>
(cherry picked from commit 49ddd8a6ed5b40d12defb0771b4c8b53d4ffde3f)
---
.../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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org