public CRC32 recoverBlockToFileFromStripeInfo ( FileSystem srcFs , Path srcPath , Block lostBlock , File localBlockFile , long blockSize , long lostBlockOffset , long limit , StripeInfo si , Context context ) throws IOException { OutputStream out = null ; try { out = new FileOutputStream ( localBlockFile ) ; CRC32 crc = null ; if ( checksumStore != null ) { crc = new CRC32 ( ) ; } fixErasedBlockImpl ( srcFs , srcPath , srcFs , null , true , blockSize , lostBlockOffset , limit , false , out , context , crc , si , true , lostBlock ) ; return crc ; } finally { if ( null != out ) { out . close ( ) ; } } }
Recover a corrupt block to local file . Using the stripe information stored in the Stripe Store .