HDFS-14189. Fix intermittent failure of TestNameNodeMetrics. Contributed by Ayush Saxena.
This commit is contained in:
parent
999f31fd20
commit
1a08302897
@ -473,7 +473,7 @@ public void testCorruptBlock() throws Exception {
|
|||||||
|
|
||||||
verifyZeroMetrics();
|
verifyZeroMetrics();
|
||||||
verifyAggregatedMetricsTally();
|
verifyAggregatedMetricsTally();
|
||||||
|
BlockManagerTestUtil.stopRedundancyThread(bm);
|
||||||
// Corrupt first replica of the block
|
// Corrupt first replica of the block
|
||||||
LocatedBlock block = NameNodeAdapter.getBlockLocations(
|
LocatedBlock block = NameNodeAdapter.getBlockLocations(
|
||||||
cluster.getNameNode(), file.toString(), 0, 1).get(0);
|
cluster.getNameNode(), file.toString(), 0, 1).get(0);
|
||||||
@ -562,7 +562,7 @@ public void testStripedFileCorruptBlocks() throws Exception {
|
|||||||
|
|
||||||
verifyZeroMetrics();
|
verifyZeroMetrics();
|
||||||
verifyAggregatedMetricsTally();
|
verifyAggregatedMetricsTally();
|
||||||
|
BlockManagerTestUtil.stopRedundancyThread(bm);
|
||||||
// Corrupt first replica of the block
|
// Corrupt first replica of the block
|
||||||
LocatedBlocks lbs = fs.getClient().getNamenode().getBlockLocations(
|
LocatedBlocks lbs = fs.getClient().getNamenode().getBlockLocations(
|
||||||
ecFile.toString(), 0, fileLen);
|
ecFile.toString(), 0, fileLen);
|
||||||
|
Loading…
Reference in New Issue
Block a user