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

Do not schedule corrupt blocks for replication

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Corrupted blocks by definition are blocks cannot be read. As a consequence, they cannot be replicated. In UnderReplicatedBlocks, there is a queue for QUEUE_WITH_CORRUPT_BLOCKS and chooseUnderReplicatedBlocks may choose blocks from it. It seems that scheduling corrupted block for replication is wasting resource and potentially slow down replication for the higher priority blocks.

        Attachments

        1. h9205_20151015.patch
          32 kB
          Tsz Wo Nicholas Sze
        2. h9205_20151013.patch
          32 kB
          Tsz Wo Nicholas Sze
        3. h9205_20151009b.patch
          32 kB
          Tsz Wo Nicholas Sze
        4. h9205_20151009.patch
          32 kB
          Tsz Wo Nicholas Sze
        5. h9205_20151008.patch
          32 kB
          Tsz Wo Nicholas Sze
        6. h9205_20151007b.patch
          12 kB
          Tsz Wo Nicholas Sze
        7. h9205_20151007.patch
          9 kB
          Tsz Wo Nicholas Sze

          Issue Links

            Activity

              People

              • Assignee:
                szetszwo Tsz Wo Nicholas Sze
                Reporter:
                szetszwo Tsz Wo Nicholas Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: