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 commit49ddd8a6ed
) (cherry picked from commit38541b2375
)
This commit is contained in:
parent
a1e09b4c0c
commit
c25b641cec
|
@ -313,7 +313,8 @@ class DataXceiver extends Receiver implements Runnable {
|
||||||
} else {
|
} else {
|
||||||
LOG.info("{}; {}", s1, t.toString());
|
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
|
// The InvalidToken exception has already been logged in
|
||||||
// checkAccess() method and this is not a server error.
|
// checkAccess() method and this is not a server error.
|
||||||
LOG.trace(s, t);
|
LOG.trace(s, t);
|
||||||
|
|
Loading…
Reference in New Issue