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

metamorphic: convert some DB.Deletes into DB.SingleDeletes #3109

Closed
wants to merge 1 commit into from

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Nov 27, 2023

This commit adjusts the metamorphic test to increase coverage of single deletes. Randomized configurations will, at runtime, consider performing a SingleDelete instead of a Delete on a subset of delete operations performed on (*pebble.DB) objects. These instances create a short-lived iterator, seek to the key and use pebble.CanDeterministicallySingleDelete to determine whether a single delete should be equivalent to a delete. If it should be, a SingleDelete is written instead.

Closes #3108.

This commit adjusts the metamorphic test to increase coverage of single
deletes. Randomized configurations will, at runtime, consider perofmring a
SingleDelete instead of a Delete on a subset of delete operations performed on
(*pebble.DB) objects. These instances create a short-lived iterator, seek to
the key and use pebble.CanDeterministicallySingleDelete to determine whether a
single delete should be equivalent to a delete. If it should be, a SingleDelete
is run instead.

Closes cockroachdb#3108.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jbowens jbowens closed this Nov 28, 2023
@jbowens jbowens deleted the meta-singledel-runtime branch November 28, 2023 15: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.

metamorphic: use single delete instead of delete opportunistically
2 participants