[ 
https://issues.apache.org/jira/browse/HDFS-14778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16916030#comment-16916030
 ] 

hemanthboyina commented on HDFS-14778:
--------------------------------------

{code:java}
 if (storage == null) {
    storage = storedBlock.findStorageInfo(node);
 }    
 if (storage == null) {
   blockLog.debug("BLOCK* findAndMarkBlockAsCorrupt: {} not found on {}",
          blk, dn);
      return;
 }
 markBlockAsCorrupt(new BlockToMarkCorrupt(reportedBlock, storedBlock,
    blk.getGenerationStamp(), reason, Reason.CORRUPTION_REPORTED), 
    storage, node); {code}
before marking the block as corrupt , we should check if the storage state is 
failedĀ 

> BlockManager findAndMarkBlockAsCorrupt adds block to the map if the Storage 
> state is failed
> -------------------------------------------------------------------------------------------
>
>                 Key: HDFS-14778
>                 URL: https://issues.apache.org/jira/browse/HDFS-14778
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: hemanthboyina
>            Assignee: hemanthboyina
>            Priority: Major
>
> Should not mark the block as corrupt if the storage state is failed



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to