-
Notifications
You must be signed in to change notification settings - Fork 3.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
storage: CheckSSTConflicts: fix instance of iterator mismatch #99695
storage: CheckSSTConflicts: fix instance of iterator mismatch #99695
Conversation
Previously, in one case, we'd let the sst iterator advance ahead of the engine iterator, which violates an invariant in this function. This change fixes that case. Fixes cockroachdb#99566. Fixes cockroachdb#99010. Epic: none Release note: None
Do we know for sure that |
ea2df2a
to
49507f3
Compare
Previously, RaduBerinde wrote…
I had just realized I pushed an older commit. Fixed this now. |
Previously, itsbilal (Bilal Akhtar) wrote…
Should we also check extOK? |
Previously, RaduBerinde wrote…
We don't need to, because |
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @erikgrinaker and @jbowens)
pkg/storage/sst.go
line 1140 at r1 (raw file):
Previously, itsbilal (Bilal Akhtar) wrote…
We don't need to, because
!extChangedKeys
guaranteesextOK
.
Ah, indeed.
TFTR! bors r=RaduBerinde |
Build failed: |
Acceptance test timeout. bors retry |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
Previously, in one case, we'd let the sst iterator advance ahead of the engine iterator, which violates an invariant in this function. This change fixes that case.
Fixes #99566.
Fixes #99010.
Epic: none
Release note: None