From 388db33dec2dea33da024fbd39b3b911d5a33c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20J=C4=99drzejczak?= Date: Mon, 20 May 2024 17:38:37 +0200 Subject: [PATCH] test: util: start_writes_to_cdc_table: add FIXME to increase CL --- test/topology/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/topology/util.py b/test/topology/util.py index bfa327dc8d..ab73a42d8f 100644 --- a/test/topology/util.py +++ b/test/topology/util.py @@ -265,6 +265,9 @@ async def start_writes_to_cdc_table(cql: Session, concurrency: int = 3): await cql.run_async(f"CREATE TABLE {ks_name}.tbl (pk int PRIMARY KEY, v int) WITH cdc = {{'enabled':true}}") stmt = cql.prepare(f"INSERT INTO {ks_name}.tbl (pk, v) VALUES (?, 0)") + # FIXME: this function is used by tests that use clusters with at least 3 nodes and restart nodes sequentially. + # Therefore, RF=3 and CL=2 should work, but they don't. Some writes fail because CL=2 is not satisfied. + # We should investigate why it happens and increase CL to 2 if possible. stmt.consistency_level = ConsistencyLevel.ONE async def do_writes():