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 gi...@apache.org on 2019/01/08 18:38:38 UTC

[hadoop] branch trunk updated: HDFS-14189. Fix intermittent failure of TestNameNodeMetrics. Contributed by Ayush Saxena.

This is an automated email from the ASF dual-hosted git repository.

gifuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 1a08302  HDFS-14189. Fix intermittent failure of TestNameNodeMetrics. Contributed by Ayush Saxena.
1a08302 is described below

commit 1a08302897bac18baf0f56b7d41ad54f63ae191b
Author: Giovanni Matteo Fumarola <gi...@apache.org>
AuthorDate: Tue Jan 8 10:38:06 2019 -0800

    HDFS-14189. Fix intermittent failure of TestNameNodeMetrics. Contributed by Ayush Saxena.
---
 .../hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 64d6c19..d9cd4ce 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
@@ -473,7 +473,7 @@ public class TestNameNodeMetrics {
 
     verifyZeroMetrics();
     verifyAggregatedMetricsTally();
-
+    BlockManagerTestUtil.stopRedundancyThread(bm);
     // Corrupt first replica of the block
     LocatedBlock block = NameNodeAdapter.getBlockLocations(
         cluster.getNameNode(), file.toString(), 0, 1).get(0);
@@ -562,7 +562,7 @@ public class TestNameNodeMetrics {
 
     verifyZeroMetrics();
     verifyAggregatedMetricsTally();
-
+    BlockManagerTestUtil.stopRedundancyThread(bm);
     // Corrupt first replica of the block
     LocatedBlocks lbs = fs.getClient().getNamenode().getBlockLocations(
         ecFile.toString(), 0, fileLen);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org