Skip to content

batcheval: support MVCC range tombstones in AddSSTable#83404

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
erikgrinaker:mvcc-range-tombstones-addsstable
Jul 1, 2022
Merged

batcheval: support MVCC range tombstones in AddSSTable#83404
craig[bot] merged 2 commits intocockroachdb:masterfrom
erikgrinaker:mvcc-range-tombstones-addsstable

Conversation

@erikgrinaker
Copy link
Copy Markdown
Contributor

@erikgrinaker erikgrinaker commented Jun 27, 2022

storage: expose IterOptions for SST iterators

This patch allows callers to pass IterOptions for the new SST
iterators.

Release note: None

batcheval: support MVCC range tombstones in AddSSTable

This patch adds initial support for MVCC range tombstones in
AddSSTable, allowing ingestion of SSTs with such tombstones. Callers
must check the MVCCRangeTombstones version gate before writing them.

They are not yet supported with DisallowConflicts,
DisallowShadowing, and DisallowShadowingBelow (including checking
for conflicts with existing range tombstones), and will error if an SST
contains any MVCC range tombstone. This is not needed for the initial
cluster replication use-case, and proper support would require MVCC
stats support for range tombstones as well -- this will be implemented
later.

Resolves #76234.

Release note: None

@erikgrinaker erikgrinaker requested review from a team as code owners June 27, 2022 10:52
@erikgrinaker erikgrinaker self-assigned this Jun 27, 2022
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@aliher1911 aliher1911 left a comment

Choose a reason for hiding this comment

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

Some nit.

This patch allows callers to pass `IterOptions` for the new SST
iterators.

Release note: None
This patch adds initial support for MVCC range tombstones in
`AddSSTable`, allowing ingestion of SSTs with such tombstones. Callers
must check the `MVCCRangeTombstones` version gate before writing them.

They are not yet supported with `DisallowConflicts`,
`DisallowShadowing`, and `DisallowShadowingBelow` (including checking
for conflicts with existing range tombstones), and will error if an SST
contains any MVCC range tombstone. This is not needed for the initial
cluster replication use-case, and proper support would require MVCC
stats support for range tombstones as well -- this will be implemented
later.

Release note: None
@erikgrinaker erikgrinaker force-pushed the mvcc-range-tombstones-addsstable branch from 57cc3f3 to 4591c7f Compare July 1, 2022 09:55
@erikgrinaker
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r=aliher1911

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 1, 2022

Build failed:

@erikgrinaker
Copy link
Copy Markdown
Contributor Author

bors retry

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 1, 2022

Build succeeded:

@craig craig bot merged commit d324df1 into cockroachdb:master Jul 1, 2022
@erikgrinaker erikgrinaker deleted the mvcc-range-tombstones-addsstable branch July 4, 2022 11:35
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.

batcheval: support MVCC range tombstones in AddSSTable

3 participants