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

revisit corrupt replicas count

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

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      A DN has 4 types of storages:
      1. NORMAL
      2. READ_ONLY
      3. FAILED
      4. (missing/pruned)

      blocksMap.numNodes(blk) counts 1,2,3
      blocksMap.getStorages(blk) counts 1,2,3

      countNodes(blk).corruptReplicas() counts 1,2
      corruptReplicas counts 1,2,3,4. Because findAndMarkBlockAsCorrupt(..) supports adding blk to the map even if the storage is not found.

      The inconsistency causes bugs like HDFS-9958.

      Attachments

        1. HDFS-10316.001.patch
          2 kB
          Yiqun Lin

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            walter.k.su Walter Su

            Dates

              Created:
              Updated:

              Slack

                Issue deployment