Skip to content

Propagate trickle_fsync settings to compressed SSTable writers - #4927

Closed
samueldlightfoot wants to merge 2 commits into
apache:cassandra-5.0from
samueldlightfoot:cassandra-5.0-fix-21487
Closed

Propagate trickle_fsync settings to compressed SSTable writers#4927
samueldlightfoot wants to merge 2 commits into
apache:cassandra-5.0from
samueldlightfoot:cassandra-5.0-fix-21487

Conversation

@samueldlightfoot

@samueldlightfoot samueldlightfoot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

CompressedSequentialWriter rebuilt its SequentialWriterOption but copied only bufferSize/bufferType/finishOnClose, dropping trickleFsync and trickleFsyncByteInterval. Compression is the default, so trickle_fsync had no effect on SSTable data files: SequentialWriter.doFlush never reached the interval sync. Carry the two fields through the rebuild.

Add tests asserting the full option-rebuild contract (caller knobs pass through, buffer sizing follows the compression layout) and that the interval sync actually fires while writing compressed data.

https://issues.apache.org/jira/browse/CASSANDRA-21487

CompressedSequentialWriter rebuilt its SequentialWriterOption but copied only
bufferSize/bufferType/finishOnClose, dropping trickleFsync and
trickleFsyncByteInterval. Compression is the default, so trickle_fsync had no
effect on SSTable data files: SequentialWriter.doFlush never reached the
interval sync. Carry the two fields through the rebuild.

Add tests asserting the full option-rebuild contract (caller knobs pass
through, buffer sizing follows the compression layout) and that the interval
sync actually fires while writing compressed data.
@samueldlightfoot
samueldlightfoot force-pushed the cassandra-5.0-fix-21487 branch from fe431dd to 459d930 Compare August 2, 2026 10:46

@frankgh frankgh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 good find!

@smiklosovic smiklosovic closed this Aug 7, 2026
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