hadoop-common-commits mailing list archives

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

(cherry picked from commit a28848104f2a067669f9b1706cd0da05ba71bcb7)


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

Branch: refs/remotes/origin/branch-3.1
Commit: 76546d23e2ba37caac0314ebbe0d6e75464ac5e3
Parents: ab514fb
Author: Inigo Goiri <inigoiri@apache.org>
Authored: Mon Jun 4 18:12:43 2018 -0700
Committer: Inigo Goiri <inigoiri@apache.org>
Committed: Mon Jun 4 18:13:14 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/76546d23/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java
index 1e92a5d..a7d325e 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java
@@ -93,7 +93,8 @@ public class TestBlockScanner {
 
     TestContext(Configuration conf, int numNameServices) throws Exception {
       this.numNameServices = numNameServices;
-      MiniDFSCluster.Builder bld = new MiniDFSCluster.Builder(conf).
+      File basedir = new File(GenericTestUtils.getRandomizedTempPath());
+      MiniDFSCluster.Builder bld = new MiniDFSCluster.Builder(conf, basedir).
           numDataNodes(1).
           storagesPerDatanode(1);
       if (numNameServices > 1) {


---------------------------------------------------------------------
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