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

BlockManager#createLocatedBlocks should not check corrupt replicas if none are corrupt

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 3.0.0-alpha1
    • hdfs
    • None
    • Reviewed

    Description

      corruptReplicas#isReplicaCorrupt(block, node) is called for every node while populating the machines array. There's no need to invoke the method if corruptReplicas#numCorruptReplicas(block) returned 0.

      Attachments

        1. HDFS-10342.001.patch
          4 kB
          Kuhu Shukla
        2. HDFS-10342.002.patch
          4 kB
          Kuhu Shukla
        3. HDFS-10342.003.patch
          4 kB
          Kuhu Shukla

        Issue Links

        Activity

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

          People

            kshukla Kuhu Shukla Assign to me
            daryn Daryn Sharp
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment