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 <[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]>
(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: [email protected]
For additional commands, e-mail: [email protected]