Skip to content

CASSANDRA-21527: Make runWithCompactionsDisabled return non-null on success (4.1) - #5019

Open
nivykani wants to merge 4 commits into
apache:cassandra-4.1from
nivykani:truncate-4.1
Open

CASSANDRA-21527: Make runWithCompactionsDisabled return non-null on success (4.1)#5019
nivykani wants to merge 4 commits into
apache:cassandra-4.1from
nivykani:truncate-4.1

Conversation

@nivykani

Copy link
Copy Markdown

Currently, runWithCompactionsDisabled can’t tell the difference between a successful truncate vs a truncate that wasn’t successful due to being unable to stop compaction, because both return null. In either case, it logs “Truncate is complete” and returns success to the user. TruncateBlockingTest reproduces this bug.

The proposed fix is adding a return value to check for success on truncateBlocking, as well as adding a new exception type for Truncate.

The Cassandra Jira

@nivykani
nivykani force-pushed the truncate-4.1 branch 2 times, most recently from 7aca14a to 00f8dbd Compare August 12, 2026 05:10
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