Skip to content

storage: specify and test iterator visibility semantics#81279

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
erikgrinaker:mvcc-iter-visibility
May 25, 2022
Merged

storage: specify and test iterator visibility semantics#81279
craig[bot] merged 1 commit intocockroachdb:masterfrom
erikgrinaker:mvcc-iter-visibility

Conversation

@erikgrinaker
Copy link
Copy Markdown
Contributor

@erikgrinaker erikgrinaker commented May 15, 2022

@jbowens I split this out from the range key PR in #77417, since we'll need to audit/update existing code for the new point key batch semantics, and it seems cleaner/easier to do this separately. As you know, the test currently fails because existing batch iterators see concurrent batch writes.

This only covers point keys, but range keys should have identical semantics, and the tests will be extended for range keys in #77417.


This patch specifies and tests iterator visibility semantics. See
comment on Engine.NewMVCCIterator for details.

Release note: None

@erikgrinaker erikgrinaker self-assigned this May 15, 2022
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@erikgrinaker erikgrinaker force-pushed the mvcc-iter-visibility branch 2 times, most recently from bd229b5 to ec1cdf2 Compare May 17, 2022 16:37
@erikgrinaker erikgrinaker marked this pull request as ready for review May 17, 2022 16:37
@erikgrinaker erikgrinaker requested a review from a team as a code owner May 17, 2022 16:37
@erikgrinaker erikgrinaker force-pushed the mvcc-iter-visibility branch 2 times, most recently from 2b0c23a to d01c884 Compare May 18, 2022 22:37
Copy link
Copy Markdown
Contributor

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Hoping to get #81389 merged today, so we can unblock the bump that includes the new semantics.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nicktrav and @sumeerbhola)

This patch specifies and tests iterator visibility semantics. See
comment on `Engine.NewMVCCIterator` for details.

Release note: None
@erikgrinaker erikgrinaker force-pushed the mvcc-iter-visibility branch from d01c884 to a779072 Compare May 25, 2022 17:43
@erikgrinaker
Copy link
Copy Markdown
Contributor Author

bors r=jbowens

@craig craig bot merged commit 5b0453e into cockroachdb:master May 25, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 25, 2022

Build succeeded:

@erikgrinaker erikgrinaker deleted the mvcc-iter-visibility branch May 28, 2022 17:10
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.

3 participants