Explorar el Código

HDFS-7394. Log at INFO level, not WARN level, when InvalidToken is seen in ShortCircuitCache (Keith Pak via Colin P. McCabe)
(cherry picked from commit 26d3b7e6ae867596bbced0bfddde22d3c0d976bb)

Colin Patrick Mccabe hace 10 años
padre
commit
5d3c130e8f

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -104,6 +104,9 @@ Release 2.7.0 - UNRELEASED
     HDFS-7386. Replace check "port number < 1024" with shared isPrivilegedPort
     HDFS-7386. Replace check "port number < 1024" with shared isPrivilegedPort
     method. (Yongjun Zhang via cnauroth)
     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
   OPTIMIZATIONS
 
 
   BUG FIXES
   BUG FIXES

+ 2 - 2
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");
       throw new RetriableException("interrupted");
     }
     }
     if (info.getInvalidTokenException() != null) {
     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());
             "exception.", info.getInvalidTokenException());
       return info;
       return info;
     }
     }
@@ -802,7 +802,7 @@ public class ShortCircuitCache implements Closeable {
         Waitable<ShortCircuitReplicaInfo> waitableInMap = replicaInfoMap.get(key);
         Waitable<ShortCircuitReplicaInfo> waitableInMap = replicaInfoMap.get(key);
         if (waitableInMap == newWaitable) replicaInfoMap.remove(key);
         if (waitableInMap == newWaitable) replicaInfoMap.remove(key);
         if (info.getInvalidTokenException() != null) {
         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());
               "exception.", info.getInvalidTokenException());
         } else {
         } else {
           LOG.warn(this + ": failed to load " + key);
           LOG.warn(this + ": failed to load " + key);