From fe45b6ed79db5b7d77423c066bc5d0e4f5466d59 Mon Sep 17 00:00:00 2001 From: Jitendra Nath Pandey Date: Tue, 31 May 2011 20:29:09 +0000 Subject: [PATCH] HADOOP-7336. TestFileContextResolveAfs will fail with default test.build.data property. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1129905 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ .../org/apache/hadoop/fs/TestFileContextResolveAfs.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index d75b23d1e8e..192668c8a37 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java b/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java index ca27ff5db52..90378f780af 100644 --- a/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java +++ b/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java @@ -33,7 +33,7 @@ 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 void testFileContextResolveAfs() throws IOException { 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);