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

Yang Yun commented on HDFS-15104:
---------------------------------

For the block, it's missing. But for the file, it's corrupt as fsck show.

I open this for it's different behavior between 3.3 and 2.6, the code of 2.6 is 
as below.  it thinks missing in 2.6 code. Did we intentionally modify its 
behavior?

final boolean isCorrupt = numCorruptNodes == numNodes;

 

 

> If block is  not reported by any Datanode, the flag corrupt of BlockLocation 
> should be marked as true.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-15104
>                 URL: https://issues.apache.org/jira/browse/HDFS-15104
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: Yang Yun
>            Assignee: Yang Yun
>            Priority: Major
>         Attachments: HDFS-15104.patch
>
>
> The flag corrupt of BlockLocation returned from getFileBlockLocations() is 
> not marked true even the block is not reported by any Datanode( the hosts is 
> empty).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to