[
https://issues.apache.org/jira/browse/CASSANDRA-21263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Minal Kyada updated CASSANDRA-21263:
------------------------------------
Complexity: Normal
Reviewers: Marcus Eriksson, Sam Tunnicliffe
Severity: Normal
Test and Documentation Plan: Unit Test
> Fix intermittent QuickTheories exhaustion in WriteWarningsSnapshotTest
> property tests
> -------------------------------------------------------------------------------------
>
> Key: CASSANDRA-21263
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21263
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Legacy/Local Write-Read Paths
> Reporter: Minal Kyada
> Assignee: Minal Kyada
> Priority: Normal
>
> *WriteWarningsSnapshotTest.testMergeCommutative intermittently fails in CI
> with: java.lang.IllegalStateException: Gave up after finding only 726
> example(s) matching the assumptions*
> *Root cause:* The counter() generator used SourceDSL.booleans().all() to
> decide whether to produce an empty WriteThresholdCounter, giving a 50%
> probability of empty. The nonEmpty() generator then applies
> .assuming(snapshot -> !snapshot.isEmpty()) to reject snapshots where both
> counters happen to be empty.
> With a 50% empty rate per counter, roughly 25% of generated snapshots are
> rejected. For testMergeCommutative (2 args), the compound rejection rate
> causes QuickTheories to exhaust its example budget before finding enough
> valid inputs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]