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

FileSystem.get may return the wrong filesystem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.23.0, 2.0.0-alpha, 3.0.0-alpha1
    • Fix Version/s: 1.2.0, 0.23.3, 2.0.2-alpha
    • Component/s: fs
    • Labels:
      None

      Description

      FileSystem.get(URI, conf) will return the default fs if the scheme is null, regardless of whether the authority is null too. This causes URIs of "//authority/path" to always refer to "/path" on the default fs. To the user, this appears to "work" if the authority in the null-scheme URI matches the authority of the default fs. When the authorities don't match, the user is very surprised that the default fs is used.

        Attachments

        1. HADOOP-8606.patch
          4 kB
          Daryn Sharp
        2. HADOOP-8606.branch-1.patch
          3 kB
          Daryn Sharp

          Activity

            People

            • Assignee:
              daryn Daryn Sharp
              Reporter:
              daryn Daryn Sharp
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: