HDFS-10760. DataXceiver#run() should not log InvalidToken exception as an error. Contributed by Pan Yuxuan.

This commit is contained in:
Wei-Chiu Chuang 2016-08-30 10:43:20 -07:00
parent af508605a9
commit c4ee6915a1

View File

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