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 ji...@apache.org on 2011/05/31 22:29:09 UTC

svn commit: r1129905 - in /hadoop/common/trunk: CHANGES.txt src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java

Author: jitendra
Date: Tue May 31 20:29:09 2011
New Revision: 1129905

URL: http://svn.apache.org/viewvc?rev=1129905&view=rev
Log:
HADOOP-7336. TestFileContextResolveAfs will fail with default test.build.data property.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1129905&r1=1129904&r2=1129905&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Tue May 31 20:29:09 2011
@@ -261,6 +261,9 @@ Trunk (unreleased changes)
     HADOOP-7208. Fix implementation of equals() and hashCode() in
     StandardSocketFactory. (Uma Maheswara Rao G via todd)
 
+    HADOOP-7336. TestFileContextResolveAfs will fail with default 
+    test.build.data property. (jitendra)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java?rev=1129905&r1=1129904&r2=1129905&view=diff
==============================================================================
--- hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java (original)
+++ hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java Tue May 31 20:29:09 2011
@@ -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);