Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.6.0
-
None
-
None
-
Incompatible change, Reviewed
-
If the caller does not supply a permission, DFSClient#mkdirs and DFSClient#primitiveMkdir will create a new directory with the default directory permission 00777 now, instead of 00666.
Description
These 2 DFSClient methods should use default directory permission to create a directory.
public boolean mkdirs(String src, FsPermission permission, boolean createParent) throws IOException { if (permission == null) { permission = FsPermission.getDefault(); }
public boolean primitiveMkdir(String src, FsPermission absPermission, boolean createParent) throws IOException { checkOpen(); if (absPermission == null) { absPermission = FsPermission.getDefault().applyUMask(dfsClientConf.uMask); }
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-18109 Ensure that default permissions of directories under internal ViewFS directories are the same as directories on target filesystems
- Resolved