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

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0, 3.0.0-alpha1
    • fs
    • None

    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 brahmareddy 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

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

              Dates

                Created:
                Updated:
                Resolved: