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

BlockInfo.addStorage fails when DN changes the storage for a block replica

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.6.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The call to removeStorageInfo is wrong because the block is still in the DatanodeStorage's list of blocks and the callee does not expect it to be.

            } else {
              // The block is on the DN but belongs to a different storage.
              // Update our state.
              removeStorage(getStorageInfo(idx));
              added = false;      // Just updating storage. Return false.
            }
      

      It is a very unlikely code path to hit since storage updates usually occur via incremental block reports.

        Attachments

        1. HDFS-6830.01.patch
          3 kB
          Arpit Agarwal
        2. HDFS-6830.02.patch
          5 kB
          Arpit Agarwal
        3. HDFS-6830.03.patch
          7 kB
          Arpit Agarwal
        4. HDFS-6830.04.patch
          7 kB
          Arpit Agarwal

        Issue Links

          Activity

            People

            • Assignee:
              arp Arpit Agarwal
              Reporter:
              arp Arpit Agarwal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment