From 65e6a1181cb4411741b0805753a0f2ff7c683d9d Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Sat, 15 Oct 2016 22:14:24 +0900 Subject: [PATCH] HDFS-11012. Unnecessary INFO logging on DFSClients for InvalidToken. Contributed by Harsh J. (cherry picked from commit 5ad037df25ab3206509083276b7ef4ef001be48b) (cherry picked from commit 35832901e87faa8cde687568df3145bea78b4121) --- .../main/java/org/apache/hadoop/hdfs/DFSInputStream.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 23cae0e3848..463ce235a66 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;