HDFS-13945. TestDataNodeVolumeFailure is Flaky. Contributed by Ayush Saxena.
(cherry picked from commit 6e0e6daaf3
)
This commit is contained in:
parent
d838d39a2c
commit
b185964b15
|
@ -424,10 +424,8 @@ public class TestDataNodeVolumeFailure {
|
||||||
@Override
|
@Override
|
||||||
public Boolean get() {
|
public Boolean get() {
|
||||||
// underReplicatedBlocks are due to failed volumes
|
// underReplicatedBlocks are due to failed volumes
|
||||||
int underReplicatedBlocks = BlockManagerTestUtil
|
long underReplicatedBlocks = bm.getLowRedundancyBlocksCount()
|
||||||
.checkHeartbeatAndGetUnderReplicatedBlocksCount(
|
+ bm.getPendingReconstructionBlocksCount();
|
||||||
cluster.getNamesystem(), bm);
|
|
||||||
|
|
||||||
if (underReplicatedBlocks > 0) {
|
if (underReplicatedBlocks > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue