Skip to content

Cassandra 17771 trunk#1762

Closed
driftx wants to merge 3 commits intoapache:trunkfrom
driftx:CASSANDRA-17771-trunk
Closed

Cassandra 17771 trunk#1762
driftx wants to merge 3 commits intoapache:trunkfrom
driftx:CASSANDRA-17771-trunk

Conversation

@driftx
Copy link
Contributor

@driftx driftx commented Jul 28, 2022

test

@driftx driftx closed this Jul 28, 2022
michaeljmarshall pushed a commit to michaeljmarshall/cassandra that referenced this pull request Sep 17, 2025
…bles (apache#1762)

### What is the issue
This test doesn't disable compaction and doesn't retain a reference to
the sstables, so it can run with an unexpected amount of sstables and
also race with the removal of the sstables backing the
ReducingKeyIterator, which causes a variety of memory safety issues.
This test fails approximately 1/30 times when multiplexed in CI.

### What does this PR fix and why was it fixed
This fixes several issues. First, it disables compaction after the
schema is created. Second, it fulfills the contract of
ReducingKeyIteratorTest by taking references to the sstables, which
should be superfluous with compactions disabled, but I prefer testing
the contract. Third, it verifies that nothing is changing the number of
sstables in the system (which would have caught the previous compaction
misconfiguration).
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Jan 7, 2026
…bles (apache#1762)

### What is the issue
This test doesn't disable compaction and doesn't retain a reference to
the sstables, so it can run with an unexpected amount of sstables and
also race with the removal of the sstables backing the
ReducingKeyIterator, which causes a variety of memory safety issues.
This test fails approximately 1/30 times when multiplexed in CI.

### What does this PR fix and why was it fixed
This fixes several issues. First, it disables compaction after the
schema is created. Second, it fulfills the contract of
ReducingKeyIteratorTest by taking references to the sstables, which
should be superfluous with compactions disabled, but I prefer testing
the contract. Third, it verifies that nothing is changing the number of
sstables in the system (which would have caught the previous compaction
misconfiguration).
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