HADOOP-12771. Fix typo in JvmPauseMonitor#getNumGcWarnThreadholdExceeded. Contributed by Xiaobing Zhou.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5d00067c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5d00067c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5d00067c Branch: refs/heads/yarn-2877 Commit: 5d00067ca7f1460bbda1330e7329205a7b1ce019 Parents: 4e5e1c0 Author: Xiaoyu Yao <x...@apache.org> Authored: Fri Feb 5 10:37:07 2016 -0800 Committer: Xiaoyu Yao <x...@apache.org> Committed: Fri Feb 5 10:37:07 2016 -0800 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java | 2 +- .../src/main/java/org/apache/hadoop/util/JvmPauseMonitor.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/5d00067c/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index ff36e1d..a6f54e4 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1664,6 +1664,9 @@ Release 2.8.0 - UNRELEASED HADOOP-12735. core-default.xml misspells hadoop.workaround.non.threadsafe.getpwuid (Ray Chiang via cmccabe) + HADOOP-12771. Fix typo in JvmPauseMonitor#getNumGcWarnThreadholdExceeded. + (Xiaobing Zhou via xyao) + Release 2.7.3 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/5d00067c/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java index 164aa93..a6de50b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java @@ -140,7 +140,7 @@ public class JvmMetrics implements MetricsSource { if (pauseMonitor != null) { rb.addCounter(GcNumWarnThresholdExceeded, - pauseMonitor.getNumGcWarnThreadholdExceeded()); + pauseMonitor.getNumGcWarnThresholdExceeded()); rb.addCounter(GcNumInfoThresholdExceeded, pauseMonitor.getNumGcInfoThresholdExceeded()); rb.addCounter(GcTotalExtraSleepTime, http://git-wip-us.apache.org/repos/asf/hadoop/blob/5d00067c/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/JvmPauseMonitor.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/JvmPauseMonitor.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/JvmPauseMonitor.java index 17a1952..80d4468 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/JvmPauseMonitor.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/JvmPauseMonitor.java @@ -106,7 +106,7 @@ public class JvmPauseMonitor extends AbstractService { return monitorThread != null; } - public long getNumGcWarnThreadholdExceeded() { + public long getNumGcWarnThresholdExceeded() { return numGcWarnThresholdExceeded; }