Przeglądaj źródła

HDFS-4438. TestDomainSocket fails when system umask is set to 0002. Contributed by Colin Patrick McCabe.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-347@1438279 13f79535-47bb-0310-9956-ffa450edef68
Aaron Myers 12 lat temu
rodzic
commit
554774c6d1

+ 1 - 1
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/unix/TestDomainSocket.java

@@ -646,7 +646,7 @@ public class TestDomainSocket {
    */
   private static void testValidateSocketPath(String str, String prefix)
       throws IOException {
-    int skipComponents = 0;
+    int skipComponents = 1;
     File prefixFile = new File(prefix);
     while (true) {
       prefixFile = prefixFile.getParentFile();

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.HDFS-347.txt

@@ -35,3 +35,5 @@ HDFS-4417. Fix case where local reads get disabled incorrectly
 (Colin Patrick McCabe and todd via todd)
 
 HDFS-4433. Make TestPeerCache not flaky (Colin Patrick McCabe via todd)
+
+HDFS-4438. TestDomainSocket fails when system umask is set to 0002. (Colin Patrick McCabe via atm)