mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 00:20:47 +00:00
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 ab43420d30)
Closes scylladb/scylladb#29278
This commit is contained in:
committed by
Avi Kivity
parent
cd7baebc8b
commit
27604deebb
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user