(cherry picked from commit c4ee6915a14e00342755d7cdcbf2d61518f306aa)
@@ -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);
+ }
LOG.error(s, t);