Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1979

TestDirectoryCollection fails when the umask is unusual

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None
    • Reviewed

    Description

      I've seen this fail in Windows where the default permissions are matching up to 700.

      -------------------------------------------------------------------------------
      Test set: org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection
      -------------------------------------------------------------------------------
      Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.015 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection
      testCreateDirectories(org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection)  Time elapsed: 0.422 sec  <<< FAILURE!
      java.lang.AssertionError: local dir parent Y:\hadoop-yarn-project\hadoop-yarn\hadoop-yarn-server\hadoop-yarn-server-nodemanager\target\org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection\dirA not created with proper permissions expected:<rwxr-xr-x> but was:<rwx------>
              at org.junit.Assert.fail(Assert.java:93)
              at org.junit.Assert.failNotEquals(Assert.java:647)
              at org.junit.Assert.assertEquals(Assert.java:128)
              at org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection.testCreateDirectories(TestDirectoryCollection.java:106)
      

      The clash is between testDiskSpaceUtilizationLimit() and testCreateDirectories().

      Attachments

        1. YARN-1979.2.patch
          2 kB
          Tsuyoshi Ozawa
        2. YARN-1979.txt
          2 kB
          Vinod Kumar Vavilapalli

        Issue Links

          Activity

            People

              vinodkv Vinod Kumar Vavilapalli
              vinodkv Vinod Kumar Vavilapalli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: