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

Do not schedule corrupt blocks for replication

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • namenode
    • None
    • 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_20151007.patch
          9 kB
          Tsz-wo Sze
        2. h9205_20151007b.patch
          12 kB
          Tsz-wo Sze
        3. h9205_20151008.patch
          32 kB
          Tsz-wo Sze
        4. h9205_20151009.patch
          32 kB
          Tsz-wo Sze
        5. h9205_20151009b.patch
          32 kB
          Tsz-wo Sze
        6. h9205_20151013.patch
          32 kB
          Tsz-wo Sze
        7. h9205_20151015.patch
          32 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: