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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: hdfs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: