Add `test_load_and_stream_rejected_on_critical_disk` which verifies that `nodetool refresh --load-and-stream` is rejected when the target node reaches critical disk utilization during streaming. The test is marked xfail because the stream_mutation_fragments handler does not yet check whether the node is in the critical disk utilization mode (introduced in the next patch). The test sets up a 3-node cluster, writes data and snapshots SSTables on one node, wipes another node's data, and copies the snapshot to its upload directory. It then starts load-and-stream and uses the `write_components_writer_created` error injection to pause SSTable writing. While paused, the test fills the disk past the critical threshold, then releases the injection. The next streamed mutation fragment is rejected with critical_disk_utilization_exception. The test verifies that: - The operation fails with the expected error. - No data is persisted on the target node. - Partial SSTable files created during streaming are deleted (via the implicit mark-for-deletion mechanism in the SSTable lifecycle).
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.