Browse Source

HDFS-16280. Fix typo for ShortCircuitReplica#isStale (#3568). Contributed by tomscut.

Reviewed-by: Hui Fei <ferhui@apache.org>
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
litao 3 years ago
parent
commit
2c37bebac4

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitReplica.java

@@ -160,7 +160,7 @@ public class ShortCircuitReplica {
       long deltaMs = Time.monotonicNow() - creationTimeMs;
       long deltaMs = Time.monotonicNow() - creationTimeMs;
       long staleThresholdMs = cache.getStaleThresholdMs();
       long staleThresholdMs = cache.getStaleThresholdMs();
       if (deltaMs > staleThresholdMs) {
       if (deltaMs > staleThresholdMs) {
-        LOG.trace("{} is stale because it's {} ms old and staleThreadholdMS={}",
+        LOG.trace("{} is stale because it's {} ms old and staleThresholdMs={}",
             this, deltaMs, staleThresholdMs);
             this, deltaMs, staleThresholdMs);
         return true;
         return true;
       } else {
       } else {