Repository: hadoop Updated Branches: refs/heads/trunk 2a81af447 -> 1c4a79850
HADOOP-14894. ReflectionUtils should use Time.monotonicNow to mesaure duration. Contributed by Bharat Viswanadham. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/1c4a7985 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/1c4a7985 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/1c4a7985 Branch: refs/heads/trunk Commit: 1c4a798505a2bc8285b709188f6492dbb33a0968 Parents: 2a81af4 Author: Anu Engineer <[email protected]> Authored: Sat Sep 23 11:56:34 2017 -0700 Committer: Anu Engineer <[email protected]> Committed: Sat Sep 23 11:56:34 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/util/ReflectionUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/1c4a7985/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java ---------------------------------------------------------------------- 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 f1294e7..ff7357a 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; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
