smallzhongfeng commented on code in PR #39448:
URL: https://github.com/apache/spark/pull/39448#discussion_r1064268534


##########
core/src/main/scala/org/apache/spark/storage/DiskBlockManager.scala:
##########
@@ -301,9 +301,6 @@ private[spark] class DiskBlockManager(
    * Create a directory that is writable by the group.
    * Grant the permission 770 "rwxrwx---" to the directory so the shuffle 
server can
    * create subdirs/files within the merge folder.
-   * TODO: Find out why can't we create a dir using java api with permission 
770

Review Comment:
   In unix like systems every process has a property called umask which is 
masked onto the permissions of any file created and inherited by child 
processes. the default is 0002 or "turn off write for others". So it's most 
likely that Java is setting the permission you seek and then it's being masked 
out. At present, this issue has not been resolved, so my current approach is to 
create a directory first, and then explicitly grant permissions.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to