Replace SimpleStrategy with NetworkTopologyStrategy in integration tests#830
Replace SimpleStrategy with NetworkTopologyStrategy in integration tests#830sylwiaszunejko wants to merge 5 commits intoscylladb:masterfrom
Conversation
36291ce to
bb73387
Compare
e35fa7e to
20b5f60
Compare
dkropachev
left a comment
There was a problem hiding this comment.
I still see lot's of SimpleStrategy in the test code, is it intended to be that way ?
For places where we won't tablets (like some places with test_metadata) disable I left SimpleStrategy, I can change it to NTS with tablets disabled if that is preferred. |
19f2c23 to
be1c0c9
Compare
We should use NTS and avoid SS wherever possible. |
I changed that |
be1c0c9 to
25d7927
Compare
|
@dkropachev @Lorak-mmk Please rereview |
1472447 to
0e1b4a7
Compare
Replace SimpleStrategy with NetworkTopologyStrategy across integration tests to align with ScyllaDB's tablet-based replication defaults. In the tablets test module, skip default keyspace creation (set_keyspace=False) to avoid RF=3 keyspaces that block node decommission when all nodes already hold replicas.
With tablets enabled, decommissioning a node from a 3-node cluster with RF=3 fails because there is no available node to receive tablet replicas. Bootstrap 3 replacement nodes instead of 2 so that each original node can be decommissioned while sufficient replicas remain.
LWT is not supported with tablets on ScyllaDB < 2025.4. Mark the affected SerialConsistencyTests and LightweightTransactionTests as xfail for those versions.
e98a599 to
2a1029d
Compare
Secondary indexes are not supported on base tables with tablets for Scylla versions < 2026.1.
2a1029d to
f4097da
Compare
|
@sylwiaszunejko If you addressed some of my earlier comments, could you mark them as resolved? And if you decided to not address some of them, could you respond with the reason? |
All resolved |
|
|
||
| @greaterthanorequalcass30 | ||
| @xfail_scylla_version_lt(reason='scylladb/scylladb#22677 - Materialized views and secondary indexes are not supported on base tables with tablets.', | ||
| oss_scylla_version='7.0', ent_scylla_version='2026.1') | ||
| @execute_count(5) |
There was a problem hiding this comment.
Unrelated: the oss_scylla_version parameter no longer makes sense. In a separate PR we should modify xfail_scylla_version_lt so that it takes only one scylla_version parameter.
In tests/integration/init.py, SimpleStrategy is kept but tablets are explicitly disabled to avoid decommission failures.
Pre-review checklist
./docs/source/.Fixes:annotations to PR description.