You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Walter Su (JIRA)" <ji...@apache.org> on 2015/07/20 14:35:04 UTC

[jira] [Resolved] (HDFS-8604) Erasure Coding: update invalidateBlock(..) logic for striped block

     [ https://issues.apache.org/jira/browse/HDFS-8604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Walter Su resolved HDFS-8604.
-----------------------------
    Resolution: Duplicate

already fixed in HDFS-8619

> 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)