Skip to content

Allow setCompressedReadAheadBufferSizeInKb(0) to disable RAB#4940

Open
nivykani wants to merge 2 commits into
apache:trunkfrom
nivykani:allow-zero
Open

Allow setCompressedReadAheadBufferSizeInKb(0) to disable RAB#4940
nivykani wants to merge 2 commits into
apache:trunkfrom
nivykani:allow-zero

Conversation

@nivykani

Copy link
Copy Markdown

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