From 916e9f5f1ceb8c4d8c05ee633d89c6734371ff33 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sat, 21 Nov 2026 03:10:01 +0530 Subject: [PATCH] Replicated erasure tests provision their lease table Memory clearing takes write fences in the fixture database. Provision its KeeperMap lease table with an isolated path so the replicated mutation assertions can run. Signed-off-by: Lareb Zafar --- tests/integration/test_erasure_replicated_ch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/test_erasure_replicated_ch.py b/tests/integration/test_erasure_replicated_ch.py index a1fa3f60c9..6c3ba5437a 100644 --- a/tests/integration/test_erasure_replicated_ch.py +++ b/tests/integration/test_erasure_replicated_ch.py @@ -74,6 +74,11 @@ def db(raw: Any, monkeypatch: pytest.MonkeyPatch) -> Iterator[str]: parameters={"db": name}, ).result_rows assert engines == [(True,)] + # Memory clears fence writes through the same database's lease table. + raw.command( + f"CREATE TABLE {name}._migration_lock AS {source}._migration_lock " + f"ENGINE = KeeperMap('/loom/tests/{name}/migration_lock') PRIMARY KEY name" + ) monkeypatch.setattr(settings, "ch_database", name) yield name finally: