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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to