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:14:35 UTC
[hadoop] branch trunk 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 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 <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>
---
.../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