HDFS-11012. Unnecessary INFO logging on DFSClients for InvalidToken. Contributed by Harsh J.
(cherry picked from commit 5ad037df25ab3206509083276b7ef4ef001be48b)
This commit is contained in:
parent
dc308e98b9
commit
35832901e8
@ -1483,9 +1483,11 @@ protected static boolean tokenRefetchNeeded(IOException ex,
|
|||||||
* access key from its memory since it's considered expired based on
|
* access key from its memory since it's considered expired based on
|
||||||
* the estimated expiration date.
|
* the estimated expiration date.
|
||||||
*/
|
*/
|
||||||
if (ex instanceof InvalidBlockTokenException || ex instanceof InvalidToken) {
|
if (ex instanceof InvalidBlockTokenException ||
|
||||||
DFSClient.LOG.info("Access token was invalid when connecting to "
|
ex instanceof InvalidToken) {
|
||||||
+ targetAddr + " : " + ex);
|
DFSClient.LOG.debug(
|
||||||
|
"Access token was invalid when connecting to {}: {}",
|
||||||
|
targetAddr, ex);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user