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

LocalDirAllocator confChanged() accesses conf.get() twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.1, 0.24.0
    • 2.0.0-alpha
    • fs
    • None

    Description

      LocalDirAllocator.AllocatorPerContext.confChanged() accesses conf.get() twice unnecessarily. The 2 calls can give 2 different values, which can lead to issues because the first call's return value is saved in savedLocalDirs and is used for comparison in the next call to confChanged() method — So the comparison is wrong.

      Attachments

        1. HADOOP-7900.patch
          0.9 kB
          Ravi Gummadi

        Activity

          People

            ravidotg Ravi Gummadi
            ravidotg Ravi Gummadi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: