You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2020/08/05 07:51:00 UTC
[jira] [Created] (SPARK-32539) Disallow
FileSystem.get(Configuration conf) by default
Gengliang Wang created SPARK-32539:
--------------------------------------
Summary: 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
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