Skip to content

Conversation

jeffswenson
Copy link
Collaborator

Previously, CRDB code interacting with the pebble SST writer used a wrapper that no-op'd Finish/Abort calls on the cloud object. This caused us to write invalid SSTs to cloud storage when we would have otherwise aborted the write.

Implementing Finish/Abort also lets us clean up some of the lifetime handling. Creating an SST writer normally takes ownership of the object. But since we no-op'd the cleanup methods, we had to hold onto the object and manually Close it to trigger the flush.

Issue: #153055
Epic: CRDB-53946
Release note: none

@jeffswenson jeffswenson requested review from a team as code owners September 5, 2025 17:49
@jeffswenson jeffswenson requested review from sumeerbhola, kev-cao and dt and removed request for a team September 5, 2025 17:49
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jeffswenson jeffswenson force-pushed the jeffswenson-flush-writer branch from 091eeab to 791b2ed Compare September 5, 2025 17:52
Previously, CRDB code interacting with the pebble SST writer used a
wrapper that no-op'd Finish/Abort calls on the cloud object. This caused
us to write invalid SSTs to cloud storage when we would have otherwise
aborted the write.

Implementing Finish/Abort also lets us clean up some of the lifetime
handling. Creating an SST writer normally takes ownership of the object.
But since we no-op'd the cleanup methods, we had to hold onto the object
and manually Close it to trigger the flush.

Issue: cockroachdb#153055
Epic: CRDB-53946
Release note: none
@jeffswenson jeffswenson force-pushed the jeffswenson-flush-writer branch from 791b2ed to df1cb41 Compare September 5, 2025 18:23
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.

2 participants