-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check ScheduledCompactKeyName and FinishedCompactKeyName before writing hash #15985
Check ScheduledCompactKeyName and FinishedCompactKeyName before writing hash #15985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this @CaojiamingAlan!
Still getting my head around the changes and linked issue, a few tiny nitpicks to consider after an initial read through.
6dd5b8e
to
8601eed
Compare
24a92a4
to
ed987e5
Compare
ed987e5
to
de65c9e
Compare
Please mark conversations as resolved if you have addressed the comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some minor comments
de65c9e
to
c3edd9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks @CaojiamingAlan 👍🏻
cc @ahrtr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall look good to me, with a couple of minor comments.
c7e1b81
to
1c6eeaf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (non-binding). Thanks! @CaojiamingAlan
1c6eeaf
to
d1c946c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @CaojiamingAlan
…esuming scheduled compaction. check ScheduledCompactKeyName and FinishedCompactKeyName before writing hash to hashstore. If they do not match, then it means this compaction has once been interrupted and its hash value is invalid. In such cases, we won't write the hash values to the hashstore, and avoids the incorrect corruption alarm. Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
d1c946c
to
b9e30bf
Compare
@CaojiamingAlan could you backport this PR to 3.5? |
@ahrtr Sure, does it mean proposing a PR to merge this change to the release-3.5 branch? |
Yes. Please note that |
Fix #15919
Commit 1: add an e2e test to reproduce the problem. This test won't pass without the fix.
Commit 2: check ScheduledCompactKeyName and FinishedCompactKeyName
before writing hash to hashstore. If they do not match, then it means this compaction has once been interrupted and its hash value is invalid. In such cases, we won't write the hash values to the hashstore, and avoids the incorrect corruption alarm.