Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13065 Add a new interface for retrieving FS and FC Statistics
  3. HADOOP-13140

FileSystem#initialize must not attempt to create StorageStatistics objects with null or empty schemes

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:

      Description

      org.apache.hadoop.fs.GlobalStorageStatistics#put is not checking the null scheme, and the internal map will complain NPE. This was reported by a flaky test TestFileSystemApplicationHistoryStore. Thanks Brahma Reddy Battula for reporting.

      To address this,

      1. Fix the test by providing a valid URI, e.g. file:///
      2. Guard the null scheme in GlobalStorageStatistics#put

        Attachments

        1. HADOOP-13140.000.patch
          4 kB
          Mingliang Liu
        2. HADOOP-13140.001.patch
          3 kB
          Mingliang Liu
        3. HADOOP-13140.002.patch
          3 kB
          Mingliang Liu

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                brahmareddy Brahma Reddy Battula
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: