HDFS-11012. Unnecessary INFO logging on DFSClients for InvalidToken. Contributed by Harsh J.

(cherry picked from commit 5ad037df25)
(cherry picked from commit 35832901e8)
This commit is contained in:
Akira Ajisaka 2016-10-15 22:14:24 +09:00
parent 3574e5692d
commit 65e6a1181c
1 changed files with 5 additions and 3 deletions

View File

@ -1443,9 +1443,11 @@ public class DFSInputStream extends FSInputStream
* access key from its memory since it's considered expired based on
* the estimated expiration date.
*/
if (ex instanceof InvalidBlockTokenException || ex instanceof InvalidToken) {
DFSClient.LOG.info("Access token was invalid when connecting to "
+ targetAddr + " : " + ex);
if (ex instanceof InvalidBlockTokenException ||
ex instanceof InvalidToken) {
DFSClient.LOG.debug(
"Access token was invalid when connecting to {}: {}",
targetAddr, ex);
return true;
}
return false;