From 1a08302897bac18baf0f56b7d41ad54f63ae191b Mon Sep 17 00:00:00 2001 From: Giovanni Matteo Fumarola Date: Tue, 8 Jan 2019 10:38:06 -0800 Subject: [PATCH] HDFS-14189. Fix intermittent failure of TestNameNodeMetrics. Contributed by Ayush Saxena. --- .../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 64d6c19c7b9..d9cd4cedf05 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);