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

add test to verify FileSystem and paths differentiate on user info

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 3.1.0
    • Component/s: fs, test
    • Labels:
      None
    • Target Version/s:

      Description

      Add a test to verify that userinfo data is (correctly) used to differentiate the entries in the FS cache, so are treated as different filesystems.

      • This is criticalk for wasb, which uses the username to identify the container, in a path like wasb:container1@stevel.azure.net. This works in Hadoop, but SPARK-22587 shows that it may not be followed everywhere (and given there's no documentation, who can fault them?)
      • AbstractFileSystem.checkPath looks suspiciously like it's path validation just checks host, not authority. That needs a test too.
      • And we should cut the @LimitedPrivate(HDFS, Mapreduce) from Path.makeQualified. If MR needs it, it should be considered open to all apps using the Hadoop APIs. Until I looked at the code I thought it was...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: