You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/08/05 08:00:00 UTC

[jira] [Commented] (SPARK-32539) Disallow FileSystem.get(Configuration conf) by default

    [ https://issues.apache.org/jira/browse/SPARK-32539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17171325#comment-17171325 ] 

Apache Spark commented on SPARK-32539:
--------------------------------------

User 'gengliangwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/29357

> Disallow FileSystem.get(Configuration conf) by default
> ------------------------------------------------------
>
>                 Key: SPARK-32539
>                 URL: https://issues.apache.org/jira/browse/SPARK-32539
>             Project: Spark
>          Issue Type: Improvement
>          Components: Project Infra
>    Affects Versions: 3.1.0
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Major
>
> The method `FileSystem.get(Configuration conf)` will return a default FileSystem instance if the conf is not set properly. This can cause regression if the target file system is not the default implementation. 
> If we disallow it in Scala style check by default and suggest developers use FileSystem.get(URI uri, Configuration conf) or Path.getFileSystem(), we can reduce potential regression and PR review effort.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org