You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by GitBox <gi...@apache.org> on 2022/05/07 08:02:18 UTC

[GitHub] [tez] skysiders commented on a diff in pull request #209: TEZ-4412 ensure mkDirForAM create directory with special permissions

skysiders commented on code in PR #209:
URL: https://github.com/apache/tez/pull/209#discussion_r867321331


##########
tez-api/src/main/java/org/apache/tez/common/TezCommonUtils.java:
##########
@@ -291,7 +291,14 @@ public static Path getSummaryRecoveryPath(Path attemptRecoverPath) {
    * @throws IOException
    */
   public static void mkDirForAM(FileSystem fs, Path dir) throws IOException {
-    fs.mkdirs(dir, new FsPermission(TEZ_AM_DIR_PERMISSION));
+    FsPermission perm = new FsPermission(TEZ_AM_DIR_PERMISSION);
+    fs.mkdirs(dir, perm);
+    if(!fs.getFileStatus(dir).getPermission().equals(perm)){

Review Comment:
   Thanks for your review. I will check it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@tez.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org