[
https://issues.apache.org/jira/browse/SPARK-35907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-35907:
------------------------------------
Assignee: (was: Apache Spark)
> Instead of File#mkdirs, Files#createDirectories is expected.
> ------------------------------------------------------------
>
> Key: SPARK-35907
> URL: https://issues.apache.org/jira/browse/SPARK-35907
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.1.2
> Reporter: Shockang Zhang
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 3.2.0
>
>
> I noticed a little problem when I was studying spark source code.
> The following is an excerpt from the comments of the class:
> org.apache.spark.util.Utils and method: createDirectory
> {code:java}
> //This sporadically fails - not sure why ...
> {code}
> Not sure why? I'm sure it's improper.
> Although File#mkdirs can create files, they are very unfriendly in exception
> handling.
> Files#createDirectories in JDK7 is better.
> Most importantly, in order to ensure correctness, I also added several
> targeted test cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]