Uh oh!
There was an error while loading. Please reload this page.
HBASE-29857 better handling NPE in BucketCache - #7685
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
vaijosh
commented
Jan 29, 2026
Thanks @teamconfx |
This comment has been minimized.
This comment has been minimized.
Apache-HBase
commented
Jan 29, 2026
🎊 +1 overall
This message was automatically generated. |
wchevreuil
left a comment
There was a problem hiding this comment.
Have a few minor comments. Apart from those, can we add UTs for these conditions?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Jan 29, 2026
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 29, 2026
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 30, 2026
💔 -1 overall
This message was automatically generated. |
teamconfx
commented
Jan 30, 2026
@wchevreuil I added a UT |
Apache-HBase
commented
Jan 30, 2026
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 30, 2026
💔 -1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Singed-off-by: Peng Lu <lupeng@apache.org> Reviewed-by: Vaibhav Joshi <vjoshi@cloudera.com>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Singed-off-by: Peng Lu <lupeng@apache.org> Reviewed-by: Vaibhav Joshi <vjoshi@cloudera.com>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Singed-off-by: Peng Lu <lupeng@apache.org> Reviewed-by: Vaibhav Joshi <vjoshi@cloudera.com>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Singed-off-by: Peng Lu <lupeng@apache.org> Reviewed-by: Vaibhav Joshi <vjoshi@cloudera.com>
This PR is for JIRA issue: https://issues.apache.org/jira/browse/HBASE-29857
The original JIRA issue is found in HBase v2.6.3, and fixed by HBASE-28839.
I tested with the same workload that I see the bug from v2.6.3 and verify the fix works in both master and branch-2.6.
However the current code still not handle NPE when persistence file is empty or corrupted explicitly.
This PR proposes a new checker to better catch the null from
BucketCacheProtos.BucketCacheEntry.parseDelimitedFrom(in);.