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

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

    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.003.patch
          4 kB
          Kuhu Shukla
        2. HDFS-10342.002.patch
          4 kB
          Kuhu Shukla
        3. HDFS-10342.001.patch
          4 kB
          Kuhu Shukla

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: