Decoder decoder = new Decoder(conf, codec);
decoder.connectToStore(srcPath);
LOG.info("In Encoding: try to reconstruct the file: " + srcPath);
// will throw exception if it fails to reconstruct the lost
// blocks.
constructor.processFile(srcPath, null, decoder, true, null);
LOG.info("In Encoding: finished to reconstruct the file: " + srcPath);
}
} else {
throw e;
}