From 5ad037df25ab3206509083276b7ef4ef001be48b 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. This closes #142 --- .../src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java | 5 +++-- 1 file changed, 3 insertions(+), 2 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 dbffc64c5c..5783f9074a 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 @@ -1261,8 +1261,9 @@ public class DFSInputStream extends FSInputStream */ if (ex instanceof InvalidBlockTokenException || ex instanceof InvalidToken) { - DFSClient.LOG.info("Access token was invalid when connecting to " - + targetAddr + " : " + ex); + DFSClient.LOG.debug( + "Access token was invalid when connecting to {}: {}", + targetAddr, ex); return true; } return false;