ソースを参照

Addendum fix for HADOOP-10052 (branch-2.2 only)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.2@1534298 13f79535-47bb-0310-9956-ffa450edef68
Andrew Wang 11 年 前
コミット
97e4460aa1

+ 4 - 0
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileContextResolveAfs.java

@@ -31,6 +31,10 @@ import org.junit.Test;
  * Tests resolution of AbstractFileSystems for a given path with symlinks.
  */
 public class TestFileContextResolveAfs {
+  // Re-enable symlinks for tests, see HADOOP-10020 and HADOOP-10052
+  static {
+    FileSystem.enableSymlinks();
+  }
   
   private static String TEST_ROOT_DIR_LOCAL
     = System.getProperty("test.build.data","/tmp");