Skip to content

CASSANDRA-21527: Make runWithCompactionsDisabled return non-null on success (6.0) - #4983

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

CASSANDRA-21527: Make runWithCompactionsDisabled return non-null on success (6.0)#4983
nivykani wants to merge 1 commit into
apache:cassandra-6.0from
nivykani:truncate-6.0

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 changed the base branch from trunk to cassandra-6.0 July 30, 2026 22:51
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