HDFS-13945. TestDataNodeVolumeFailure is Flaky. Contributed by Ayush Saxena.
(cherry picked from commit 6e0e6daaf3215213c32cdffa79f3730d40e981ea)
This commit is contained in:
parent
f1fbc56371
commit
bed2f407a9
@ -424,10 +424,8 @@ public void testUnderReplicationAfterVolFailure() throws Exception {
|
||||
@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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user