From 27604deebb2287f015c2b0381a01ef033cfc5235 Mon Sep 17 00:00:00 2001 From: Andrzej Jackowski Date: Fri, 27 Mar 2026 20:18:46 +0100 Subject: [PATCH] test: use exclusive driver connection in test_limited_concurrency_of_writes Use get_cql_exclusive(node1) so the driver only connects to node1 and never attempts to contact the stopped node2. The test was flaky because the driver received `Host has been marked down or removed` from node2. Fixes: SCYLLADB-1227 Closes scylladb/scylladb#29268 (cherry picked from commit ab43420d30731b6062e5973a11b1e508a75c599e) Closes scylladb/scylladb#29278 --- test/cluster/test_hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cluster/test_hints.py b/test/cluster/test_hints.py index 7275128624..3ef32e352f 100644 --- a/test/cluster/test_hints.py +++ b/test/cluster/test_hints.py @@ -87,7 +87,7 @@ async def test_limited_concurrency_of_writes(manager: ManagerClient): }) node2 = await manager.server_add() - cql = manager.get_cql() + cql = await manager.get_cql_exclusive(node1) async with new_test_keyspace(manager, "WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 2}") as ks: table = f"{ks}.t" await cql.run_async(f"CREATE TABLE {table} (pk int primary key, v int)")