Skip to content

Conversation

echauchot
Copy link
Contributor

@echauchot echauchot commented Jul 31, 2025

A bug in split calculation (ring fraction calculation) was uncovered by this PR. The existing split tests are run on an embedded Cassandra cluster with only one node. This leads to having ringFraction always equal to 1 (the single node hosts 100% of the data) during the tests. This masks the bug.
Test splits on an embedded cluster of 2 nodes.
Additional changes:

  • implement robust refresh size estimates for tests
  • fix timeouts configuration
  • upgrade to latest cassandra 4.x
    PS: tests are longer to setup because of the node cluster: measured on my laptop 2min16 vs 57s but the better split testings is worth it I think.

R: @Poorvankbhatia

…to update size estimates: flush updates the SSTables and refreshsizeestimates updates the size estimates based on them
…tion accessible to tests and not call estimate_size during tests. In refreshSizeEstimates wait until system.size_estimates has at least a row that has non-null mean_partition_size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant