Skip to content

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

Closed
nivykani wants to merge 1 commit into
apache:cassandra-4.1from
nivykani:truncate-4.1
Closed

CASSANDRA-21527: Make runWithCompactionsDisabled return non-null on success (4.1)#5019
nivykani wants to merge 1 commit 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 3 times, most recently from 00f8dbd to 4fb81ed Compare August 13, 2026 20:39
@nivykani
nivykani force-pushed the truncate-4.1 branch 3 times, most recently from 3a3ed8d to 173bd3b Compare August 17, 2026 18:11
@maedhroz

Copy link
Copy Markdown
Contributor

Committed as be37969

@maedhroz maedhroz closed this Aug 17, 2026
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