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: add cluster setting delete_compaction_excise.enabled #132870

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

itsbilal
Copy link
Member

This change adds a cluster setting to be able to dynamically
disable excises in delete-only compactions. Excises allow
for range deletions / range key deletions to be applied to
sstables even if they don't fully overlap with the sstable;
we just produce virtual sstables for the remainder of the sstable.

Epic: none

Release note: None

Changes:

 * [`1d2e9e82`](cockroachdb/pebble@1d2e9e82) options: add EnableDeleteOnlyCompactionExcises Option

Release note: none.
Epic: none.
@itsbilal itsbilal requested review from a team as code owners October 17, 2024 21:03
Copy link

blathers-crl bot commented Oct 17, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

"set to false to direct Pebble to not partially excise sstables in delete-only compactions",
metamorphic.ConstantWithTestBool(
"storage.delete_compaction_excise.enabled", true), /* defaultValue */
settings.WithPublic)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Driveby: should this be a public setting?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think there's a good argument for it to go either way. For now I just copied the same visibility as some of the other compaction-y settings like ingest_split.enabled above.a

@itsbilal itsbilal force-pushed the bilal/pebble-master-1d2e9e829b92 branch 2 times, most recently from 2904c94 to 8dc3169 Compare October 18, 2024 03:11
This change adds a cluster setting to be able to dynamically
disable excises in delete-only compactions. Excises allow
for range deletions / range key deletions to be applied to
sstables even if they don't fully overlap with the sstable;
we just produce virtual sstables for the remainder of the sstable.

Epic: none

Release note: None
@itsbilal itsbilal force-pushed the bilal/pebble-master-1d2e9e829b92 branch from 8dc3169 to 75fb9ef Compare October 18, 2024 03:13
@itsbilal
Copy link
Member Author

TFTR!

bors r=aadityasondhi

@craig craig bot merged commit 833dadd into cockroachdb:master Oct 18, 2024
22 of 23 checks passed
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.

4 participants