Explorar o código

Merged r1129905 for HADOOP-7336 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/yahoo-merge@1129911 13f79535-47bb-0310-9956-ffa450edef68
Jitendra Nath Pandey %!s(int64=14) %!d(string=hai) anos
pai
achega
41c34e1a36

+ 3 - 0
CHANGES.txt

@@ -115,6 +115,9 @@ Trunk (unreleased changes)
     HADOOP-7282. ipc.Server.getRemoteIp() may return null.  (John George
     via szetszwo)
 
+    HADOOP-7336. TestFileContextResolveAfs will fail with default 
+    test.build.data property. (jitendra)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 3 - 3
src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java

@@ -33,7 +33,7 @@ import org.junit.Test;
 public class TestFileContextResolveAfs {
   
   private static String TEST_ROOT_DIR_LOCAL
-    = System.getProperty("test.build.data","build/test/data/work-dir/localfs");
+    = System.getProperty("test.build.data","/tmp");
   
   private FileContext fc;
   private FileSystem localFs;
@@ -48,8 +48,8 @@ public class TestFileContextResolveAfs {
     Configuration conf = new Configuration();
     localFs = FileSystem.get(conf);
     
-    Path localPath = new Path(TEST_ROOT_DIR_LOCAL + "/file1");
-    Path linkPath = new Path("file:///" + TEST_ROOT_DIR_LOCAL + "/file2");
+    Path localPath = new Path(TEST_ROOT_DIR_LOCAL + "/TestFileContextResolveAfs1");
+    Path linkPath = new Path("file://" + TEST_ROOT_DIR_LOCAL + "/TestFileContextResolveAfs2");
     localFs.mkdirs(new Path(TEST_ROOT_DIR_LOCAL));
     localFs.create(localPath);