hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject [21/50] hadoop git commit: HDFS-13649. Randomize baseDir for MiniDFSCluster in TestReconstructStripedFile and TestReconstructStripedFileWithRandomECPolicy. Contributed by Anbang Hu.
Date Wed, 13 Jun 2018 01:17:51 GMT
HDFS-13649. Randomize baseDir for MiniDFSCluster in TestReconstructStripedFile and TestReconstructStripedFileWithRandomECPolicy.
Contributed by Anbang Hu.

(cherry picked from commit 16316b60112842cf8a328b79c89297f6a8b30e7b)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/19b37e70
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/19b37e70
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/19b37e70

Branch: refs/remotes/origin/branch-3.1
Commit: 19b37e70801f3b9a5f909425aac953ce1806a666
Parents: 76546d2
Author: Inigo Goiri <inigoiri@apache.org>
Authored: Mon Jun 4 18:21:38 2018 -0700
Committer: Inigo Goiri <inigoiri@apache.org>
Committed: Mon Jun 4 18:22:09 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/19b37e70/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java
index 1e93a2d..2adddb6 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestReconstructStripedFile.java
@@ -122,7 +122,9 @@ public class TestReconstructStripedFile {
           CodecUtil.IO_ERASURECODE_CODEC_RS_RAWCODERS_KEY,
           NativeRSRawErasureCoderFactory.CODER_NAME);
     }
-    cluster = new MiniDFSCluster.Builder(conf).numDataNodes(dnNum).build();
+    File basedir = new File(GenericTestUtils.getRandomizedTempPath());
+    cluster = new MiniDFSCluster.Builder(conf, basedir).numDataNodes(dnNum)
+        .build();
     cluster.waitActive();
 
     fs = cluster.getFileSystem();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message