Skip to content

Commit 445b5af

Browse files
sylwiaszunejkodkropachev
authored andcommitted
tests: bootstrap 3 new nodes in full node replacement test
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.
1 parent 69bb8ef commit 445b5af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/standard/test_client_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ def tearDownClass(cls):
11541154
def test_should_survive_full_node_replacement_through_nlb(self):
11551155
"""
11561156
1. Start with 3 nodes behind the NLB
1157-
2. Bootstrap 2 new nodes, add to NLB, update routes
1157+
2. Bootstrap 3 new nodes, add to NLB, update routes
11581158
3. Decommission the original 3 nodes one-by-one, updating NLB/routes
11591159
4. Verify the session survives with only new nodes
11601160
"""
@@ -1190,7 +1190,7 @@ def test_should_survive_full_node_replacement_through_nlb(self):
11901190
len(original_node_ids))
11911191

11921192
# ---- Stage 3: Bootstrap new nodes ----
1193-
new_node_ids = [max(original_node_ids) + 1, max(original_node_ids) + 2]
1193+
new_node_ids = [max(original_node_ids) + 1, max(original_node_ids) + 2, max(original_node_ids) + 3]
11941194
log.info("Stage 3: Adding nodes %s", new_node_ids)
11951195
ccm_cluster = get_cluster()
11961196

0 commit comments

Comments
 (0)