ndimiduk opened a new pull request, #5417:
URL: https://github.com/apache/hbase/pull/5417

   * when no block size is provided and there's not a preread headerBuf, treat 
the value with caution.
   * verify HBase checksums before making use of the block header.
   * inline verifyOnDiskSizeMatchesHeader to keep throw/return logic in the 
method body.
   * separate validation of onDiskSizeWithHeader as input parameter from as 
read from block header
   * simplify branching around fetching and populating onDiskSizeWithHeader.
   * inline retrieving nextOnDiskBlockSize ; add basic validation.
   * whenever a read is determined to be corrupt and fallback to HDFS checksum 
is necessary, also invalidate the cached value of headerBuf.
   * build out a test suite covering various forms of block header corruption, 
for blocks in first and second positions.


-- 
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]

Reply via email to