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

add test to verify FileSystem and paths differentiate on user info

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.2
    • 3.1.0
    • fs, test
    • None

    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

        1. HADOOP-15070-001.patch
          15 kB
          Steve Loughran

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: