Explorar o código

HDFS-14094. [SBN read] Fix the order of logging arguments in ObserverReadProxyProvider. Contributed by Ayush Saxena.

Konstantin V Shvachko %!s(int64=6) %!d(string=hai) anos
pai
achega
54a1c66e48

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/ObserverReadProxyProvider.java

@@ -302,7 +302,7 @@ public class ObserverReadProxyProvider<T extends ClientProtocol>
         // If we get here, it means all observers have failed.
         LOG.warn("{} observers have failed for read request {}; also found " +
             "{} standby and {} active. Falling back to active.",
-            failedObserverCount, standbyCount, activeCount, method.getName());
+            failedObserverCount, method.getName(), standbyCount, activeCount);
       }
 
       // Either all observers have failed, or that it is a write request.