Shockang opened a new pull request #33101: URL: https://github.com/apache/spark/pull/33101
### What changes were proposed in this pull request? The code of method: createDirectory in class: org.apache.spark.util.Utils is modified. ### Why are the changes needed? To solve the problem of ambiguous exception handling in traditional IO creating directories. What's more, there shouldn't be an improper comment in Spark's source code. ### Does this PR introduce _any_ user-facing change? Yes The modified method would be called to create the working directory when Worker starts. The modified method would be called to create local directories for storing block data when the class: DiskBlockManager instantiates. The modified method would be called to create a temporary directory inside the given parent directory in several classes. ### How was this patch tested? I have provided test cases as much as possible. Authored-by: Shockang <shock...@aliyun.com> -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org