From 06d1c9033effcd2b1ea54e87229d5478d85732ca Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Wed, 23 Sep 2015 19:38:09 -0700 Subject: [PATCH] HDFS-9128. TestWebHdfsFileContextMainOperations and TestSWebHdfsFileContextMainOperations fail due to invalid HDFS path on Windows. Contributed by Chris Nauroth. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 4 ++++ .../hadoop/fs/TestSWebHdfsFileContextMainOperations.java | 5 +++++ .../hadoop/fs/TestWebHdfsFileContextMainOperations.java | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 34adbf0237b..aaa37e74513 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1390,6 +1390,10 @@ Release 2.8.0 - UNRELEASED HDFS-9013. Deprecate NameNodeMXBean#getNNStarted in branch2 and remove from trunk (Surendra Singh Lilhore via vinayakumarb) + HDFS-9128. TestWebHdfsFileContextMainOperations and + TestSWebHdfsFileContextMainOperations fail due to invalid HDFS path on + Windows. (Chris Nauroth via wheat9) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSWebHdfsFileContextMainOperations.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSWebHdfsFileContextMainOperations.java index 874abd6c600..53513fd1504 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSWebHdfsFileContextMainOperations.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestSWebHdfsFileContextMainOperations.java @@ -93,6 +93,11 @@ public class TestSWebHdfsFileContextMainOperations } + @Override + protected FileContextTestHelper createFileContextHelper() { + return new FileContextTestHelper("/tmp/TestSWebHdfsFileContextMainOperations"); + } + @Override public URI getWebhdfsUrl() { return webhdfsUrl; diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestWebHdfsFileContextMainOperations.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestWebHdfsFileContextMainOperations.java index c4bf0cee921..ec91cd16679 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestWebHdfsFileContextMainOperations.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestWebHdfsFileContextMainOperations.java @@ -61,6 +61,11 @@ public class TestWebHdfsFileContextMainOperations return defaultWorkingDirectory; } + @Override + protected FileContextTestHelper createFileContextHelper() { + return new FileContextTestHelper("/tmp/TestWebHdfsFileContextMainOperations"); + } + public URI getWebhdfsUrl() { return webhdfsUrl; }