Refactor the way we decide the sstable belong to a tablet, fully or partially to simplify the flow and make it more readable. Also extract the logic and make it testable, add tests to cover changes The change is purely aesthetic, no need to backport Closes scylladb/scylladb#27101 * github.com:scylladb/scylladb: streaming: remove unnecessary lambda creating sstable token range streaming: simplify get_sstables_for_tablets logic streaming: switch to range-based for loop streaming: drop sstable skip microoptimization in tablet loop streaming: replace reverse iterators with reverse view in sstables scan streaming: return from get_sstables_for_tablets earlier streaming: add get_sstables_by_tablet_range tests test,sstables: add helper to set sstable first and last keys streaming: refactor get_sstables_for_tablets to make it accessible streaming: refactor get_sstables_for_tablets to make it testable streaming: refactor tablet_sstable_streamer::stream by extracting SST filtering logic
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.