Browse Source

HDFS-640. Fix TestHDFSFileContextMainOperations.java build failure. Contributed by Suresh Srinivas.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@817458 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 15 năm trước cách đây
mục cha
commit
6b53fe5f43

+ 1 - 0
CHANGES.txt

@@ -11,6 +11,7 @@ Trunk (unreleased changes)
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   BUG FIXES
+  HDFS-640. Fixed TestHDFSFileContextMainOperations.java build failure. (suresh)
 
 
 
 
 Release 0.21.0 - Unreleased
 Release 0.21.0 - Unreleased

+ 1 - 1
src/test/hdfs/org/apache/hadoop/fs/TestHDFSFileContextMainOperations.java

@@ -44,7 +44,7 @@ public class TestHDFSFileContextMainOperations extends
     fc = FileContext.getFileContext(cluster.getFileSystem());
     fc = FileContext.getFileContext(cluster.getFileSystem());
     defaultWorkingDirectory = fc.makeQualified( new Path("/user/" + 
     defaultWorkingDirectory = fc.makeQualified( new Path("/user/" + 
         UnixUserGroupInformation.login().getUserName()));
         UnixUserGroupInformation.login().getUserName()));
-    fc.mkdirs(defaultWorkingDirectory, FileContext.DEFAULT_PERM);
+    fc.mkdir(defaultWorkingDirectory, FileContext.DEFAULT_PERM, true);
   }
   }