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 f1294e7610..ff7357a175 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 static void logThreadInfo(Log log, 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 static void logThreadInfo(Logger log, 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;