public StripeInfo retrieveStripe ( Block lostBlock , Path p , long lostBlockOffset , FileSystem fs , Context context , boolean online ) throws IOException { StripeInfo si = null ; if ( stripeStore != null ) { IOException caughtException = null ; try { si = stripeStore . getStripe ( codec , lostBlock ) ; } catch ( IOException ioe ) { LOG . error ( " Fail to get stripe " + codec + " : " + lostBlock , ioe ) ; caughtException = ioe ; } if ( si == null ) { // Stripe is not record, we should report LogUtils . logRaidReconstructionMetrics ( LOGRESULTS . FAILURE , 0 , codec , p , lostBlockOffset , online ? LOGTYPES . ONLINE_RECONSTRUCTION_GET_STRIPE : LOGTYPES . OFFLINE_RECONSTRUCTION_GET_STRIPE , fs , caughtException , context ) ; } } return si ; }
Retrieve stripes from stripe store