Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
0.23.3, 2.0.1-alpha
-
None
-
None
Description
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:
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) ...
Attachments
Issue Links
- duplicates
-
HADOOP-13792 Stackoverflow for schemeless defaultFS with trailing slash
- Resolved