Jason Lowe created HADOOP-9069:
----------------------------------
Summary: 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: 2.0.1-alpha, 0.23.3
Reporter: Jason Lowe
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira