[ 
https://issues.apache.org/jira/browse/YARN-5425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15397430#comment-15397430
 ] 

Akira Ajisaka commented on YARN-5425:
-------------------------------------

After HADOOP-13073, 
{code:title=TestDirectoryCollection#testCreateDirectories}
    conf.set(CommonConfigurationKeys.FS_PERMISSIONS_UMASK_KEY, "077");
{code}
has effect on RawLocalFileSystem, but it has no effect on 
{{FileContext.umask}}. Therefore {{localFs.getUMask()}} returns 022 and 
{{localFs.setPermission(dir, perm)}} is not called in the following code.
{code:title=DirectoryCollection#createDir}
      if (!perm.equals(perm.applyUMask(localFs.getUMask()))) {
        localFs.setPermission(dir, perm);
      }
{code}

> TestDirectoryCollection.testCreateDirectories failed
> ----------------------------------------------------
>
>                 Key: YARN-5425
>                 URL: https://issues.apache.org/jira/browse/YARN-5425
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.9.0
>            Reporter: Yufei Gu
>            Assignee: Yufei Gu
>
> {code}
> java.lang.AssertionError: local dir parent not created with proper 
> permissions expected:<rwxr-xr-x> but was:<rwx------>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotEquals(Assert.java:743)
>       at org.junit.Assert.assertEquals(Assert.java:118)
>       at 
> org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection.testCreateDirectories(TestDirectoryCollection.java:113)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to