comnetwork commented on PR #5296:
URL: https://github.com/apache/hbase/pull/5296#issuecomment-1595684450
@Apache9 , thanks for review, yes , for HBASE-27053 , it checksum is removed
from the the `curBlock` ByteBuff in `FSReaderImpl.readBlockDataInternal` once
the checksum is verified, and it create HFileBlock by the `curBlock` ByteBuff
which checksum is removed.
` // remove checksum from buffer now that it's verified
int sizeWithoutChecksum =
curBlock.getInt(Header.ON_DISK_DATA_SIZE_WITH_HEADER_INDEX);
curBlock.limit(sizeWithoutChecksum);
long duration = EnvironmentEdgeManager.currentTime() - startTime;
if (updateMetrics) {
HFile.updateReadLatency(duration, pread);
}
HFileBlock hFileBlock = createFromBuff(curBlock, checksumSupport,
offset,
nextBlockOnDiskSize, fileContext, intoHeap ? HEAP : allocator);`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]