int stripeIndex, int parityLength, long blockSize,
long lastOffsetInBlock) throws IOException {
FSDataInputStream parityIn = ppair.getFileSystem().open(ppair.getPath());
try {
// Seek to the beginning of parity stripe.
parityIn.seek(stripeIndex * parityLength * blockSize + lastOffsetInBlock - CHECKSIZE);
// Parity blocks are always full, so we should be able to read CHECKSIZE bytes.
IOUtils.readFully(parityIn, actualParityBuf, 0, CHECKSIZE);
} finally {
parityIn.close();
}