Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8031 Follow-on work for erasure coding phase I (striping layout)
  3. HDFS-8604

Erasure Coding: update invalidateBlock(..) logic for striped block

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

        
        private boolean invalidateBlock(BlockToMarkCorrupt b, DatanodeInfo dn
            ) throws IOException {
        ..
          } else if (nr.liveReplicas() >= 1) { 
            // If we have at least one copy on a live node, then we can delete it.
            addToInvalidates(b.corrupted, dn); 
            removeStoredBlock(b.stored, node);
      

      We don't delete corrupted block if all we left is corrupted block. We give user the decision. So user has chance to recover it manually.
      We should not compare liveReplicas() of Striped block with "1". The logic need update.

      Attachments

        Issue Links

          Activity

            People

              walter.k.su Walter Su
              walter.k.su Walter Su
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: