HDFS-13945. TestDataNodeVolumeFailure is Flaky. Contributed by Ayush Saxena.

(cherry picked from commit 6e0e6daaf3)
This commit is contained in:
Vinayakumar B 2018-10-12 17:34:10 +05:30
parent d838d39a2c
commit b185964b15
1 changed files with 2 additions and 4 deletions

View File

@ -424,10 +424,8 @@ public class TestDataNodeVolumeFailure {
@Override
public Boolean get() {
// underReplicatedBlocks are due to failed volumes
int underReplicatedBlocks = BlockManagerTestUtil
.checkHeartbeatAndGetUnderReplicatedBlocksCount(
cluster.getNamesystem(), bm);
long underReplicatedBlocks = bm.getLowRedundancyBlocksCount()
+ bm.getPendingReconstructionBlocksCount();
if (underReplicatedBlocks > 0) {
return true;
}