HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed by Pan Yuxuan.
(cherry picked from commit c4ee6915a1
)
This commit is contained in:
parent
9df118e5fe
commit
80bb9ffb67
|
@ -311,6 +311,12 @@ class DataXceiver extends Receiver implements Runnable {
|
|||
} else {
|
||||
LOG.info(s1 + "; " + t);
|
||||
}
|
||||
} else if (t instanceof InvalidToken) {
|
||||
// The InvalidToken exception has already been logged in
|
||||
// checkAccess() method and this is not a server error.
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace(s, t);
|
||||
}
|
||||
} else {
|
||||
LOG.error(s, t);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue