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

Hudson commented on HDFS-3890:
------------------------------

Integrated in Hadoop-Common-trunk-Commit #2692 (See 
[https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2692/])
    HDFS-3890. filecontext mkdirs doesn't apply umask as expected (Tom Graves 
via daryn) (Revision 1381606)

     Result = SUCCESS
daryn : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1381606
Files : 
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/fs/Hdfs.java
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestFcHdfsSetUMask.java

                
> filecontext mkdirs doesn't apply umask as expected
> --------------------------------------------------
>
>                 Key: HDFS-3890
>                 URL: https://issues.apache.org/jira/browse/HDFS-3890
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.23.3
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>         Attachments: HDFS-3890.patch, HDFS-3890.patch, HDFS-3890.patch
>
>
> I was attempting to set the umask of my fileContext and then do a mkdirs, but 
> the umask wasn't applied as expected. 
> doneDirFc = FileContext.getFileContext(doneDirPrefixPath.toUri(), conf);
> doneDirFc.setUMask(JobHistoryUtils.HISTORY_DONE_DIR_UMASK);
> doneDirFc.mkdir(path, fsp, true);
> It appears to be using the default umask set in the conf 
> (fs.permissions.umask-mode) and overrode the umask I set in fileContext. I 
> had the default umask set to 077 and set the filecontext umask to 007.  The 
> permissions on the directories it created were all rwx------.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to