Skip to content

Enable trickle fsync by default - #5032

Open
samueldlightfoot wants to merge 1 commit into
apache:cassandra-6.0from
samueldlightfoot:21572-enable-trickle-6.0
Open

Enable trickle fsync by default#5032
samueldlightfoot wants to merge 1 commit into
apache:cassandra-6.0from
samueldlightfoot:21572-enable-trickle-6.0

Conversation

@samueldlightfoot

Copy link
Copy Markdown
Contributor

Replace getTrickleFsyncIntervalInKiB with getTrickleFsyncIntervalInBytes. The interval accepts up to Integer.MAX_VALUE KiB, so KiB * 1024 in int arithmetic overflowed above 2 GiB and could wrap negative, fsyncing every buffer. Widen the writer's counter and the option's interval to long for the same reason.

patch by Sam Lightfoot; reviewed by for CASSANDRA-21572

Replace getTrickleFsyncIntervalInKiB with getTrickleFsyncIntervalInBytes. The
interval accepts up to Integer.MAX_VALUE KiB, so KiB * 1024 in int arithmetic
overflowed above 2 GiB and could wrap negative, fsyncing every buffer. Widen the
writer's counter and the option's interval to long for the same reason.
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.

1 participant