> On 2010-11-03 11:41:39, Ramkumar Vadali wrote: > > Looks good to me, but this diff depends on a hadoop-common change, right? It depends on HADOOP-7013, which can be found here: https://reviews.apache.org/r/26/ - Patrick ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/27/#review29 ----------------------------------------------------------- On 2010-11-03 11:33:39, Patrick Kling wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/27/ > ----------------------------------------------------------- > > (Updated 2010-11-03 11:33:39) > > > Review request for hadoop-hdfs. > > > 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 > ----- > > 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 > >