Skip to content

CASSANDRA-21522: Allow setCompressedReadAheadBufferSizeInKb(0) to disable RAB - #4978

Open
nivykani wants to merge 1 commit into
apache:cassandra-6.0from
nivykani:allow-zero-6.0
Open

CASSANDRA-21522: Allow setCompressedReadAheadBufferSizeInKb(0) to disable RAB#4978
nivykani wants to merge 1 commit into
apache:cassandra-6.0from
nivykani:allow-zero-6.0

Conversation

@nivykani

@nivykani nivykani commented Jul 30, 2026

Copy link
Copy Markdown

(Same change as #4940, adding to the 6.0 branch)

In DatabaseDescriptor:1132, the exception states: compressed_read_ahead_buffer_size must be at least 256KiB (set to 0 to disable). But, if an operator ever later tries to disable the buffer by following this message and setting sizeInKb to 0, setCompressedReadAheadBufferSizeInKb() will throw an error that sizeInKb < 256.

This PR explicitly allows a value of 0 in setCompressedReadAheadBufferSizeInKb (I’ve traced that 0 is handled in every other place that reads this value).

The Cassandra Jira

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