Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.6.0
-
None
-
None
Description
Notice field umask is not set to parameter theUmask and theUmask is unused.
FileContext.java
private FileContext(final AbstractFileSystem defFs, final FsPermission theUmask, final Configuration aConf) { defaultFS = defFs; umask = FsPermission.getUMask(aConf); conf = aConf; ... public static FileContext getFileContext(final AbstractFileSystem defFS, final Configuration aConf) { return new FileContext(defFS, FsPermission.getUMask(aConf), aConf); }
Proposal:
- Set umask to theUmask. Since the only caller getFileContext already passes the same value in theUmask, there is no change in behavior.