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

ArrayIndexOutOfBoundException in BlocksMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.15.0
    • 0.15.0
    • None
    • None

    Description

      If the name-node receives a duplicate report of a written block from a data-node it does not insert
      the block into the block map but mistakenly inserts it into the list of blocks belonging to the data-node,
      placing it into the beginning of the list. Since the block is not removed from the list prior to the insertion,
      the list itself becomes corrupted.
      This patch fixes the problem. I also reorganized the add/removeNode and add/removeBlock methods
      in order to avoid similar bugs in the future.

      Attachments

        1. RedundantAddBlock.patch
          8 kB
          Konstantin Shvachko

        Activity

          People

            shv Konstantin Shvachko
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: