-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27/
-----------------------------------------------------------

(Updated 2010-11-03 11:33:39.415750)


Review request for hadoop-hdfs.


Changes
-------

Incorporated Ram's feedback. Thank you!


Summary
-------

DFSClient.getBlockLocations returns BlockLocations with no indication that the 
corresponding blocks are corrupt

When there are no uncorrupted replicas of a block, 
FSNamesystem.getBlockLocations returns LocatedBlocks corresponding to corrupt 
blocks. When DFSClient converts these to BlockLocations, the information that 
the corresponding block is corrupt is lost. We should add a field to 
BlockLocation to indicate whether the corresponding block is corrupt in order 
to warn the client that reading this block will fail. This would be especially 
useful for tools such as RAID FSCK, which could then easily inspect whether 
data or parity blocks are corrupted without having to make direct RPC calls


This addresses bug HDFS-1483.
    https://issues.apache.org/jira/browse/HDFS-1483


Diffs (updated)
-----

  
http://svn.apache.org/repos/asf/hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/DFSUtil.java
 1028386 
  
http://svn.apache.org/repos/asf/hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/TestDFSUtil.java
 PRE-CREATION 

Diff: https://reviews.apache.org/r/27/diff


Testing
-------

TestDFSUtil


Thanks,

Patrick

Reply via email to