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

Small race in BlockManager#close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • namenode
    • None
    • Reviewed

    Description

      There's a small race in BlockManager#close, we close the BlocksMap before the replication monitor, which means the replication monitor can NPE if it tries to access the blocks map. We need to swap the order (close the blocks map after shutting down the repl monitor).

      Attachments

        1. hdfs-3048.txt
          1 kB
          Andy Isaacson
        2. hdfs-3787-2.txt
          1 kB
          Eli Collins
        3. hdfs-3048.txt
          0.8 kB
          Eli Collins

        Issue Links

          Activity

            People

              adi2 Andy Isaacson
              eli2 Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: