You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by br...@apache.org on 2017/09/19 17:18:12 UTC
[2/2] hadoop git commit: HDFS-12480.
TestNameNodeMetrics#testTransactionAndCheckpointMetrics Fails in trunk.
Contributed by Hanisha Koneru
HDFS-12480. TestNameNodeMetrics#testTransactionAndCheckpointMetrics Fails in trunk. Contributed by Hanisha Koneru
(cherry picked from commit 31b58406ac369716ef1665b7d60a3409117bdf9d)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6ee79d57
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6ee79d57
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6ee79d57
Branch: refs/heads/branch-3.0
Commit: 6ee79d573a99ef4df6248bb537d82d2201254b38
Parents: 839d5b1
Author: Brahma Reddy Battula <br...@apache.org>
Authored: Tue Sep 19 10:37:07 2017 +0530
Committer: Brahma Reddy Battula <br...@apache.org>
Committed: Tue Sep 19 10:46:01 2017 +0530
----------------------------------------------------------------------
.../namenode/metrics/TestNameNodeMetrics.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/6ee79d57/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
index 077a5f8..db9adbe 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java
@@ -851,22 +851,22 @@ public class TestNameNodeMetrics {
getMetrics(NS_METRICS));
assertGauge("LastCheckpointTime", lastCkptTime, getMetrics(NS_METRICS));
- assertGauge("LastWrittenTransactionId", 3L, getMetrics(NS_METRICS));
- assertGauge("TransactionsSinceLastCheckpoint", 3L, getMetrics(NS_METRICS));
- assertGauge("TransactionsSinceLastLogRoll", 3L, getMetrics(NS_METRICS));
+ assertGauge("LastWrittenTransactionId", 4L, getMetrics(NS_METRICS));
+ assertGauge("TransactionsSinceLastCheckpoint", 4L, getMetrics(NS_METRICS));
+ assertGauge("TransactionsSinceLastLogRoll", 4L, getMetrics(NS_METRICS));
fs.mkdirs(new Path(TEST_ROOT_DIR_PATH, "/tmp"));
assertGauge("LastCheckpointTime", lastCkptTime, getMetrics(NS_METRICS));
- assertGauge("LastWrittenTransactionId", 4L, getMetrics(NS_METRICS));
- assertGauge("TransactionsSinceLastCheckpoint", 4L, getMetrics(NS_METRICS));
- assertGauge("TransactionsSinceLastLogRoll", 4L, getMetrics(NS_METRICS));
+ assertGauge("LastWrittenTransactionId", 5L, getMetrics(NS_METRICS));
+ assertGauge("TransactionsSinceLastCheckpoint", 5L, getMetrics(NS_METRICS));
+ assertGauge("TransactionsSinceLastLogRoll", 5L, getMetrics(NS_METRICS));
cluster.getNameNodeRpc().rollEditLog();
assertGauge("LastCheckpointTime", lastCkptTime, getMetrics(NS_METRICS));
- assertGauge("LastWrittenTransactionId", 6L, getMetrics(NS_METRICS));
- assertGauge("TransactionsSinceLastCheckpoint", 6L, getMetrics(NS_METRICS));
+ assertGauge("LastWrittenTransactionId", 7L, getMetrics(NS_METRICS));
+ assertGauge("TransactionsSinceLastCheckpoint", 7L, getMetrics(NS_METRICS));
assertGauge("TransactionsSinceLastLogRoll", 1L, getMetrics(NS_METRICS));
cluster.getNameNodeRpc().setSafeMode(SafeModeAction.SAFEMODE_ENTER, false);
@@ -876,7 +876,7 @@ public class TestNameNodeMetrics {
long newLastCkptTime = MetricsAsserts.getLongGauge("LastCheckpointTime",
getMetrics(NS_METRICS));
assertTrue(lastCkptTime < newLastCkptTime);
- assertGauge("LastWrittenTransactionId", 8L, getMetrics(NS_METRICS));
+ assertGauge("LastWrittenTransactionId", 9L, getMetrics(NS_METRICS));
assertGauge("TransactionsSinceLastCheckpoint", 1L, getMetrics(NS_METRICS));
assertGauge("TransactionsSinceLastLogRoll", 1L, getMetrics(NS_METRICS));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org