Split compaction divides the partitions in an existing sstable into two groups and writes them into two new sstables, which replace the original one. The partition count from the original sstable is used as an estimate when writing the new ones, but this estimate is not accurate as the partitions are split between the two new sstables and each will contain only a portion of the original partition count. This also causes the bloom filters to be rebuilt at the end of compaction, as they were initially built with inaccurate estimates. Fix this by using a better estimate for the output sstables, which is half the original partition count. Fixes #20253 Improvement; No need to backport. Closes scylladb/scylladb#20908 * github.com:scylladb/scylladb: compaction: use better partition estimate for split compaction compaction::table_state: implement `get_token_range_after_split()` wrapper replica/table: implement `get_token_range_after_split()` wrappers tablet_map: introduce `get_token_range_after_split()` tablet_map: implement existing get_token_range() using the new variant tablet_map: introduce `get_token_range()` variant tablet_map: introduce `get_last_token()` variant
Scylla in-source tests.
For details on how to run the tests, see docs/dev/testing.md
Shared C++ utils, libraries are in lib/, for Python - pylib/
alternator - Python tests which connect to a single server and use the DynamoDB API unit, boost, raft - unit tests in C++ cqlpy - Python tests which connect to a single server and use CQL topology* - tests that set up clusters and add/remove nodes cql - approval tests that use CQL and pre-recorded output rest_api - tests for Scylla REST API Port 9000 scylla-gdb - tests for scylla-gdb.py helper script nodetool - tests for C++ implementation of nodetool
If you can use an existing folder, consider adding your test to it. New folders should be used for new large categories/subsystems, or when the test environment is significantly different from some existing suite, e.g. you plan to start scylladb with different configuration, and you intend to add many tests and would like them to reuse an existing Scylla cluster (clusters can be reused for tests within the same folder).
To add a new folder, create a new directory, and then
copy & edit its suite.ini.