Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
0.22.0
-
None
-
None
-
None
Description
Here is the piece of code that has the bug. fs.setPermission should not be called if result is false.
public static boolean mkdirs(FileSystem fs, Path dir, FsPermission permission) throws IOException { // create the directory using the default permission boolean result = fs.mkdirs(dir); // set its permission to be the supplied one fs.setPermission(dir, permission); return result; }
Attachments
Attachments
Issue Links
- is related to
-
HDFS-1322 Document umask in DistributedFileSystem#mkdirs javadocs
- Closed
- relates to
-
HADOOP-6962 FileSystem.mkdirs(Path, FSPermission) should use the permission for all of the created directories
- Resolved