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 ar...@apache.org on 2018/05/22 20:14:49 UTC
[21/50] [abbrv] hadoop git commit: HDFS-13593.
TestBlockReaderLocalLegacy#testBlockReaderLocalLegacyWithAppend fails on
Windows. Contributed by Anbang Hu.
HDFS-13593. TestBlockReaderLocalLegacy#testBlockReaderLocalLegacyWithAppend fails on Windows. Contributed by Anbang Hu.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/9775ecb2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/9775ecb2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/9775ecb2
Branch: refs/heads/HDDS-48
Commit: 9775ecb2355d7bed3514fcd54bf69e8351c4ab99
Parents: 57b893d
Author: Inigo Goiri <in...@apache.org>
Authored: Fri May 18 09:46:02 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Fri May 18 09:46:02 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/9775ecb2/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