Skip to content
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

storage: gc range tombstone - fix mvcc stat update on merge #87408

Merged

Conversation

aliher1911
Copy link
Contributor

Previously if range tombstone fragment was not eligible for GC
it was not checked if it can merge with previous range tombstone
fragments stack. This was causing MVCC stats discrepancy.
This commit adds a check merge eligibility check for skipped
fragments.

Release justification: bugfix for upcoming functionality
Release note: None

Fixes: #87406

Previously if range tombstone fragment was not eligible for GC
it was not checked if it can merge with previous range tombstone
fragments stack. This was causing MVCC stats discrepancy.
This commit adds a check merge eligibility check for skipped
fragments.

Release justification: bugfix for upcoming functionality
Release note: None
@aliher1911 aliher1911 requested a review from a team as a code owner September 6, 2022 11:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aliher1911 aliher1911 requested a review from a team September 6, 2022 11:01
@aliher1911 aliher1911 self-assigned this Sep 6, 2022
@aliher1911
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 6, 2022

Build succeeded:

@craig craig bot merged commit af1a53a into cockroachdb:master Sep 6, 2022
@aliher1911 aliher1911 deleted the rts_gc_mvcc_stats_on_no_change_merge branch September 6, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

range tombstone GC: when range fragment is newer than GC threshold mvccstats might be updated incorrectly
4 participants