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:
Wei-Chiu Chuang 2016-08-30 10:43:20 -07:00
parent f70f522e80
commit abbd95b790
1 changed files with 6 additions and 0 deletions

View File

@ -311,6 +311,12 @@ public void run() {
} 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);
}