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 49ddd8a6ed)
(cherry picked from commit 38541b2375)
(cherry picked from commit c25b641cec)
This commit is contained in:
Kitti Nanasi 2019-02-05 15:13:14 -08:00 committed by Wei-Chiu Chuang
parent 02cfd5fa35
commit ad131757f2
1 changed files with 2 additions and 1 deletions

View File

@ -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);