You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2020/01/25 06:20:47 UTC
[hadoop] branch trunk updated: HDFS-15128. Unit test failing to
clean testing data and crashed future Maven test run due to failure in
TestDataNodeVolumeFailureToleration. Contributed by Ctest
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 <ay...@apache.org>
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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org