[
https://issues.apache.org/jira/browse/HADOOP-9069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andras Bokor reassigned HADOOP-9069:
------------------------------------
Assignee: Andras Bokor
> 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
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]