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

Erasure Coding: Fix unit test bug of TestAddOverReplicatedStripedBlocks.testProcessOverReplicatedAndCorruptStripedBlock.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I'm working on ec replication and find a bug of the test case: TestAddOverReplicatedStripedBlocks#testProcessOverReplicatedAndCorruptStripedBlock.

      The test case added 2 redundant block then check the block indices. It wrote 'the redundant internal blocks will not be deleted before the corrupted block gets reconstructed.'

      But actually the redundant block could be deleted when there is corrupted block. The reason the test could pass is it runs very fast and checks the block indices before the redundant block is deleted and reported to the NameNode. 

      The patch is both a fix and an explanation of the bug.

       

      Attachments

        1. HDFS-15730.001.patch
          2 kB
          Jinglun

        Activity

          People

            LiJinglun Jinglun
            LiJinglun Jinglun
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: