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

PendingReconstructionBlocks.size() should be synchronized

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: