Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10617

PendingReconstructionBlocks.size() should be synchronized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 2.9.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      PendingReconstructionBlocks (PendingReplicationBlocks in branch-2 and below) is a HashMap, which is not a thread-safe data structure. Therefore, the size() function should be synchronized just like the rest of the member functions.

      Attachments

        1. HDFS-10617.001.patch
          0.8 kB
          Eric Badger
        2. HDFS-10617.002.patch
          0.8 kB
          Eric Badger
        3. HDSF-10617-b2.001.patch
          0.8 kB
          Eric Badger

        Activity

          People

            ebadger Eric Badger
            ebadger Eric Badger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: