From 26d3b7e6ae867596bbced0bfddde22d3c0d976bb Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Sun, 16 Nov 2014 21:20:53 -0800 Subject: [PATCH] HDFS-7394. Log at INFO level, not WARN level, when InvalidToken is seen in ShortCircuitCache (Keith Pak via Colin P. McCabe) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 2917ea9154d..53c9c0abc8f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -359,6 +359,9 @@ Release 2.7.0 - UNRELEASED HDFS-7386. Replace check "port number < 1024" with shared isPrivilegedPort method. (Yongjun Zhang via cnauroth) + HDFS-7394. Log at INFO level, not WARN level, when InvalidToken is seen in + ShortCircuitCache (Keith Pak via Colin P. McCabe) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java index a4b852f32e4..3edf9a963a7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java @@ -743,7 +743,7 @@ public class ShortCircuitCache implements Closeable { throw new RetriableException("interrupted"); } if (info.getInvalidTokenException() != null) { - LOG.warn(this + ": could not get " + key + " due to InvalidToken " + + LOG.info(this + ": could not get " + key + " due to InvalidToken " + "exception.", info.getInvalidTokenException()); return info; } @@ -802,7 +802,7 @@ public class ShortCircuitCache implements Closeable { Waitable waitableInMap = replicaInfoMap.get(key); if (waitableInMap == newWaitable) replicaInfoMap.remove(key); if (info.getInvalidTokenException() != null) { - LOG.warn(this + ": could not load " + key + " due to InvalidToken " + + LOG.info(this + ": could not load " + key + " due to InvalidToken " + "exception.", info.getInvalidTokenException()); } else { LOG.warn(this + ": failed to load " + key);