Skip to content

Commit 248d659

Browse files
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 f6ae326 commit 248d659

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
@@ -1137,7 +1137,7 @@ def tearDownClass(cls):
11371137
def test_should_survive_full_node_replacement_through_nlb(self):
11381138
"""
11391139
1. Start with 3 nodes behind the NLB
1140-
2. Bootstrap 2 new nodes, add to NLB, update routes
1140+
2. Bootstrap 3 new nodes, add to NLB, update routes
11411141
3. Decommission the original 3 nodes one-by-one, updating NLB/routes
11421142
4. Verify the session survives with only new nodes
11431143
"""
@@ -1173,7 +1173,7 @@ def test_should_survive_full_node_replacement_through_nlb(self):
11731173
len(original_node_ids))
11741174

11751175
# ---- Stage 3: Bootstrap new nodes ----
1176-
new_node_ids = [max(original_node_ids) + 1, max(original_node_ids) + 2]
1176+
new_node_ids = [max(original_node_ids) + 1, max(original_node_ids) + 2, max(original_node_ids) + 3]
11771177
log.info("Stage 3: Adding nodes %s", new_node_ids)
11781178
ccm_cluster = get_cluster()
11791179

0 commit comments

Comments
 (0)