void function ( Path arg0 , boolean arg1 ) { final LocatedBlocks loc0 = dfs . dfs . getNamenode ( ) . getBlockLocations ( arg0 . toUri ( ) . getPath ( ) , 0 , Long . MAX_VALUE ) ; final LocatedBlock loc1 = loc0 . get ( 0 ) ; Assert . assertEquals ( arg1 , loc1 . isCorrupt ( ) ) ; }
verify the first block of the file is corrupted for all its replica . concode_field_sep Log LOG concode_elem_sep DistributedFileSystem dfs concode_elem_sep MiniDFSCluster cluster concode_elem_sep long BLOCK_SIZE concode_elem_sep Configuration conf concode_elem_sep Random rand concode_elem_sep int buffersize concode_elem_sep int numDataNodes concode_field_sep void verifyFsckHealth concode_elem_sep void startUpCluster concode_elem_sep void shutDownCluster concode_elem_sep void verifyFsckBlockCorrupted concode_elem_sep void dfsClientReadFile concode_elem_sep void dfsClientReadFileFromPosition concode_elem_sep void testCorruptAllOfThreeReplicas concode_elem_sep void corruptBlock concode_elem_sep void testCorruptTwoOutOfThreeReplicas concode_elem_sep void createAFileWithCorruptedBlockReplicas concode_elem_sep void verifyCorruptedBlockCount concode_elem_sep void testOneBlockReplica concode_elem_sep void testFsckListCorruptFilesBlocks concode_elem_sep String runFsck