hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter Su (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8604) Erasure Coding: update invalidateBlock(..) logic for striped block
Date Mon, 15 Jun 2015 07:19:01 GMT
Walter Su created HDFS-8604:
-------------------------------

             Summary: Erasure Coding: update invalidateBlock(..) logic for striped block
                 Key: HDFS-8604
                 URL: https://issues.apache.org/jira/browse/HDFS-8604
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Walter Su
            Assignee: Walter Su


{code}  
  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);
{code}
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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message