You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2018/08/02 13:50:01 UTC
[jira] [Resolved] (HADOOP-9069) FileSystem.get leads to stack
overflow if default FS is not configured with a scheme
[ https://issues.apache.org/jira/browse/HADOOP-9069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang resolved HADOOP-9069.
-------------------------------------
Resolution: Duplicate
> FileSystem.get leads to stack overflow if default FS is not configured with a scheme
> ------------------------------------------------------------------------------------
>
> Key: HADOOP-9069
> URL: https://issues.apache.org/jira/browse/HADOOP-9069
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.23.3, 2.0.1-alpha
> Reporter: Jason Lowe
> Assignee: Andras Bokor
> Priority: Minor
>
> If fs.defaultFS is configured without a scheme, e.g.: "/", then FileSystem.get will infinitely recurse and lead to a stack overflow. An example stacktrace from 0.23:
> {noformat}
> java.lang.StackOverflowError
> at java.util.AbstractCollection.<init>(AbstractCollection.java:66)
> at java.util.AbstractList.<init>(AbstractList.java:76)
> at java.util.ArrayList.<init>(ArrayList.java:128)
> at java.util.ArrayList.<init>(ArrayList.java:139)
> at org.apache.hadoop.conf.Configuration.handleDeprecation(Configuration.java:430)
> at org.apache.hadoop.conf.Configuration.get(Configuration.java:852)
> at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:171)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:163)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:290)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:163)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:290)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:163)
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org