Repository: hadoop Updated Branches: refs/heads/branch-2.8 3574e5692 -> 65e6a1181
HDFS-11012. Unnecessary INFO logging on DFSClients for InvalidToken. Contributed by Harsh J. (cherry picked from commit 5ad037df25ab3206509083276b7ef4ef001be48b) (cherry picked from commit 35832901e87faa8cde687568df3145bea78b4121) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/65e6a118 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/65e6a118 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/65e6a118 Branch: refs/heads/branch-2.8 Commit: 65e6a1181cb4411741b0805753a0f2ff7c683d9d Parents: 3574e56 Author: Akira Ajisaka <[email protected]> Authored: Sat Oct 15 22:14:24 2016 +0900 Committer: Akira Ajisaka <[email protected]> Committed: Sat Oct 15 22:19:14 2016 +0900 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/65e6a118/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java index 23cae0e..463ce23 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java @@ -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; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
