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>
This commit is contained in:
parent
1385cdfeb9
commit
2c37bebac4
@ -160,7 +160,7 @@ boolean isStale() {
|
|||||||
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user