Prechádzať zdrojové kódy

HDFS-9128. TestWebHdfsFileContextMainOperations and TestSWebHdfsFileContextMainOperations fail due to invalid HDFS path on Windows. Contributed by Chris Nauroth.

Haohui Mai 9 rokov pred
rodič
commit
06d1c9033e

+ 4 - 0
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

+ 5 - 0
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;

+ 5 - 0
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;
   }