Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9069

FileSystem.get leads to stack overflow if default FS is not configured with a scheme

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.23.3, 2.0.1-alpha
    • None
    • fs
    • 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

          Activity

            People

              boky01 Andras Bokor
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: