diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java index f1294e7610a..ff7357a175b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java @@ -212,7 +212,7 @@ public class ReflectionUtils { boolean dumpStack = false; if (log.isInfoEnabled()) { synchronized (ReflectionUtils.class) { - long now = Time.now(); + long now = Time.monotonicNow(); if (now - previousLogTime >= minInterval * 1000) { previousLogTime = now; dumpStack = true; @@ -241,7 +241,7 @@ public class ReflectionUtils { boolean dumpStack = false; if (log.isInfoEnabled()) { synchronized (ReflectionUtils.class) { - long now = Time.now(); + long now = Time.monotonicNow(); if (now - previousLogTime >= minInterval * 1000) { previousLogTime = now; dumpStack = true;