hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [2/5] hadoop git commit: HDFS-13593. TestBlockReaderLocalLegacy#testBlockReaderLocalLegacyWithAppend fails on Windows. Contributed by Anbang Hu.
Date Fri, 18 May 2018 17:04:56 GMT
HDFS-13593. TestBlockReaderLocalLegacy#testBlockReaderLocalLegacyWithAppend fails on Windows.
Contributed by Anbang Hu.

(cherry picked from commit 9775ecb2355d7bed3514fcd54bf69e8351c4ab99)


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

Branch: refs/heads/branch-3.1
Commit: 8a86269c510bfd34c60ee37dc500de50cc20c99d
Parents: da5eff8
Author: Inigo Goiri <inigoiri@apache.org>
Authored: Fri May 18 09:46:02 2018 -0700
Committer: Inigo Goiri <inigoiri@apache.org>
Committed: Fri May 18 09:46:29 2018 -0700

----------------------------------------------------------------------
 .../hadoop/hdfs/client/impl/TestBlockReaderLocalLegacy.java   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/8a86269c/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/client/impl/TestBlockReaderLocalLegacy.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/client/impl/TestBlockReaderLocalLegacy.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/client/impl/TestBlockReaderLocalLegacy.java
index 273619c..285cdb6 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/client/impl/TestBlockReaderLocalLegacy.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/client/impl/TestBlockReaderLocalLegacy.java
@@ -48,6 +48,7 @@ import org.apache.hadoop.net.unix.DomainSocket;
 import org.apache.hadoop.net.unix.TemporarySocketDirectory;
 import org.apache.hadoop.security.UserGroupInformation;
 import org.apache.hadoop.security.token.Token;
+import org.apache.hadoop.test.GenericTestUtils;
 import org.junit.Assert;
 import org.junit.Assume;
 import org.junit.BeforeClass;
@@ -93,8 +94,9 @@ public class TestBlockReaderLocalLegacy {
     final long FILE_LENGTH = 512L;
 
     HdfsConfiguration conf = getConfiguration(null);
+    File basedir = new File(GenericTestUtils.getRandomizedTempPath());
     MiniDFSCluster cluster =
-        new MiniDFSCluster.Builder(conf).numDataNodes(1).build();
+        new MiniDFSCluster.Builder(conf, basedir).numDataNodes(1).build();
     cluster.waitActive();
     FileSystem fs = cluster.getFileSystem();
 
@@ -173,8 +175,9 @@ public class TestBlockReaderLocalLegacy {
     final HdfsConfiguration conf = getConfiguration(null);
     conf.setBoolean(HdfsClientConfigKeys.DFS_CLIENT_USE_LEGACY_BLOCKREADERLOCAL, true);
 
+    File basedir = new File(GenericTestUtils.getRandomizedTempPath());
     final MiniDFSCluster cluster =
-        new MiniDFSCluster.Builder(conf).numDataNodes(1).build();
+        new MiniDFSCluster.Builder(conf, basedir).numDataNodes(1).build();
     cluster.waitActive();
 
     final DistributedFileSystem dfs = 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