Merge pull request #65766 from ClickHouse/fix-test_alter_attach

Fix flaky `test_replicated_database::test_alter_attach`
This commit is contained in:
Antonio Andelic 2024-06-28 08:06:45 +00:00 committed by GitHub
commit cb0cd60e62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,8 +337,12 @@ def test_alter_attach(started_cluster, attachable_part, engine):
main_node.query(f"SELECT CounterID FROM {database}.alter_attach_test")
== "123\n"
)
# On the other node, data is replicated only if using a Replicated table engine
if engine == "ReplicatedMergeTree":
dummy_node.query(
f"SYSTEM SYNC REPLICA {database}.alter_attach_test LIGHTWEIGHT"
)
assert (
dummy_node.query(f"SELECT CounterID FROM {database}.alter_attach_test")
== "123\n"