HDFS-15128. Unit test failing to clean testing data and crashed future Maven test run due to failure in TestDataNodeVolumeFailureToleration. Contributed by Ctest
This commit is contained in:
parent
839e6076c1
commit
6d008c0d39
|
@ -246,6 +246,9 @@ public class TestDataNodeVolumeFailureToleration {
|
||||||
GenericTestUtils.assertExceptionContains("Invalid value configured for "
|
GenericTestUtils.assertExceptionContains("Invalid value configured for "
|
||||||
+ "dfs.datanode.failed.volumes.tolerated", e);
|
+ "dfs.datanode.failed.volumes.tolerated", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
for (File dir : dirs) {
|
||||||
|
FileUtil.chmod(dir.toString(), "755");
|
||||||
|
}
|
||||||
boolean bpServiceState;
|
boolean bpServiceState;
|
||||||
// If the datanode not registered successfully,
|
// If the datanode not registered successfully,
|
||||||
// because the invalid value configured for tolerated volumes
|
// because the invalid value configured for tolerated volumes
|
||||||
|
@ -257,10 +260,6 @@ public class TestDataNodeVolumeFailureToleration {
|
||||||
.isBPServiceAlive(cluster.getNamesystem().getBlockPoolId());
|
.isBPServiceAlive(cluster.getNamesystem().getBlockPoolId());
|
||||||
}
|
}
|
||||||
assertEquals(expectedBPServiceState, bpServiceState);
|
assertEquals(expectedBPServiceState, bpServiceState);
|
||||||
|
|
||||||
for (File dir : dirs) {
|
|
||||||
FileUtil.chmod(dir.toString(), "755");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue