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