raft: enforce odd number of voters in group0 Implement odd number voter enforcement in the group0 voter calculator to ensure proper Raft consensus behavior. Raft consensus requires a majority of voters to make decisions, and odd numbers of voters is preferred because an even number doesn't add additional reliability but introduces the risk of scenarios where no group can make progress. If an even number of voters is divided into two groups of equal size during a network partition, neither group will have majority and both will be unable to commit new entries. With an odd number of voters, such equal partition scenarios are impossible (unless the network is partitioned into at least three groups). Fixes: scylladb/scylladb#23266 No backport: This is a new change that is to be only deployed in the new version, so it will not be backported. Closes scylladb/scylladb#25332 * https://github.com/scylladb/scylladb: raft: enforce odd number of voters in group0 test/raft: adapt test_tablets_lwt.py for odd voter number enforcement test/raft: adapt test_raft_no_quorum.py for odd voter enforcement
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.