xiaguanglei commented on code in PR #6740:
URL: https://github.com/apache/hbase/pull/6740#discussion_r1991946902
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java:
##########
@@ -1885,6 +1910,17 @@ private boolean validateChecksum(long offset, ByteBuff
data, int hdrSize) {
if (!fileContext.isUseHBaseChecksum()) {
return false;
}
+
+ // If the checksumType of the read block header is incorrect, it
indicates that the block is
+ // corrupted and can be directly rolled back to HDFS checksum
verification
+ if (!checkCheckSumTypeOnHeaderBuf(data)) {
+ HFile.LOG.warn("HBase checksumType verification failed for file " +
pathName + " at offset "
Review Comment:
Ok, I have modified this warn log according to the format
--
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]