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:
Ayush Saxena 2020-01-25 11:47:29 +05:30
parent 839e6076c1
commit 6d008c0d39
1 changed files with 3 additions and 4 deletions

View File

@ -246,6 +246,9 @@ public class TestDataNodeVolumeFailureToleration {
GenericTestUtils.assertExceptionContains("Invalid value configured for "
+ "dfs.datanode.failed.volumes.tolerated", e);
} finally {
for (File dir : dirs) {
FileUtil.chmod(dir.toString(), "755");
}
boolean bpServiceState;
// If the datanode not registered successfully,
// because the invalid value configured for tolerated volumes
@ -257,10 +260,6 @@ public class TestDataNodeVolumeFailureToleration {
.isBPServiceAlive(cluster.getNamesystem().getBlockPoolId());
}
assertEquals(expectedBPServiceState, bpServiceState);
for (File dir : dirs) {
FileUtil.chmod(dir.toString(), "755");
}
}
}