Skip to content

CASSANDRA-21216/CASSANDRA-21260: Clear savedBuffer and savedNextKey in BTree.FastBuilder.reset()#4793

Open
andresbeckruiz wants to merge 1 commit intoapache:cassandra-6.0from
andresbeckruiz:abeckruiz/CASSANDRA-21216/cassandra-6.0
Open

CASSANDRA-21216/CASSANDRA-21260: Clear savedBuffer and savedNextKey in BTree.FastBuilder.reset()#4793
andresbeckruiz wants to merge 1 commit intoapache:cassandra-6.0from
andresbeckruiz:abeckruiz/CASSANDRA-21216/cassandra-6.0

Conversation

@andresbeckruiz
Copy link
Copy Markdown

Port of #4746 to the cassandra-6.0 branch.

In addition to the original fix (clearing savedBuffer and savedNextKey for both leaf and branch levels), the 6.0 patch also:

  • Clears hasRightChild on branch nodes
  • Calls clearSourceNode() on branch nodes
  • Adds the Invariants.require() postcondition from AbstractUpdater.reset() to the consolidated method

The JVM Dtest from the original patch is not included, as the specific schema disagreement scenario it tests should not occur in 6.0.

…, causing ClassCastException and SSTable header corruption during schema disagreement

patch by Andrés Beck-Ruiz; reviewed by Zhao Yang, Benedict Elliott Smith for CASSANDRA-21216
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