HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed by Pan Yuxuan.
This commit is contained in:
parent
af508605a9
commit
c4ee6915a1
@ -312,6 +312,12 @@ public void run() {
|
|||||||
} else {
|
} else {
|
||||||
LOG.info(s1 + "; " + t);
|
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 {
|
} else {
|
||||||
LOG.error(s, t);
|
LOG.error(s, t);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user