This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 6d008c0 HDFS-15128. Unit test failing to clean testing data and
crashed future Maven test run due to failure in
TestDataNodeVolumeFailureToleration. Contributed by Ctest
6d008c0 is described below
commit 6d008c0d39185f18dbec4676f4d0e7ef77104eb7
Author: Ayush Saxena <[email protected]>
AuthorDate: Sat Jan 25 11:47:29 2020 +0530
HDFS-15128. Unit test failing to clean testing data and crashed future
Maven test run due to failure in TestDataNodeVolumeFailureToleration.
Contributed by Ctest
---
.../hdfs/server/datanode/TestDataNodeVolumeFailureToleration.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeVolumeFailureToleration.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeVolumeFailureToleration.java
index a9e4096..6165f05 100644
---
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeVolumeFailureToleration.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodeVolumeFailureToleration.java
@@ -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");
- }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]