[
https://issues.apache.org/jira/browse/HBASE-29158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932978#comment-17932978
]
Guanglei Xia edited comment on HBASE-29158 at 3/6/25 12:20 PM:
---------------------------------------------------------------
[~ndimiduk] hi, Can you help me review my PR? I think my issue is similar to
your HBASE-28065, but I have encountered another situation: an issue with the
corrupt HFile block header and header cache not checking chesumType, which can
cause an exception to be thrown before HBase checksum due to incorrect
checksumType, instead of downgrading to HDFS checksum. This issue has been
verified in our company's HBase cluster, and I now hope that the community can
help us to code review it,Thank you!
was (Author: JIRAUSER308845):
[~ndimiduk] hi, Can you help me review my PR? I think my issue is similar to
your HBASE-28065, but I have encountered another situation: an issue with the
corrupt HFile block header and header cache not checking chesumType, which can
cause an exception to be thrown before HBase checksum due to incorrect
checksumType, instead of downgrading to HDFS checksum. This issue has been
verified in our company's HBase cluster, and I now hope that the community can
help us to code view it,Thank you!
> Unknown checksum type code exception occurred while reading HFileBlock
> ----------------------------------------------------------------------
>
> Key: HBASE-29158
> URL: https://issues.apache.org/jira/browse/HBASE-29158
> Project: HBase
> Issue Type: Bug
> Components: HFile
> Affects Versions: 2.2.6, 2.6.2
> Reporter: Guanglei Xia
> Priority: Major
> Labels: pull-request-available
>
> In our HBase cluster, we encountered frequent checksum type error messages.
> After reviewing the relevant Jira, we found that HBASE-28605 had previously
> discussed the issue of HBase checksum. Currently, HBase checksum does not
> check the hfile header cache, which can cause some problems when HFile is
> corrupted. This patch(HBASE-28605) also fixes several cases of corrupt HFile.
> However, HBASE-28605 cannot solve the problem of checksum type error when the
> HFile header is corrupted. We propose a new patch to fix the issue of
> checksum type error. We will check the checksum type value of the hfile
> header before the checksum. If this is incorrect, it means that the hfile
> header is corrupted and cannot be used anymore. Finally, this patch was
> applied in our HBase cluster and the bug has been resolved in our cluster.
> We will provide feedback on this patch to the community and display the error
> stack in the comments, hoping to receive some guidance......
--
This message was sent by Atlassian Jira
(v8.20.10#820010)