mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge pull request #57809 from ClickHouse/fix-flaky-test_parallel_replicas_over_distributed
Fix flaky test_parallel_replicas_over_distributed
This commit is contained in:
commit
230e1fe6c7
@ -129,6 +129,9 @@ def test_parallel_replicas_over_distributed(
|
||||
node = nodes[0]
|
||||
expected_result = f"6003\t-1999\t1999\t3\n"
|
||||
|
||||
# sync all replicas to get consistent result
|
||||
node.query(f"SYSTEM SYNC REPLICA ON CLUSTER {cluster} {table_name}")
|
||||
|
||||
# parallel replicas
|
||||
assert (
|
||||
node.query(
|
||||
@ -142,11 +145,13 @@ def test_parallel_replicas_over_distributed(
|
||||
== expected_result
|
||||
)
|
||||
|
||||
# sync all replicas to get consistent result by next distributed query
|
||||
node.query(f"SYSTEM SYNC REPLICA ON CLUSTER {cluster} {table_name}")
|
||||
|
||||
# w/o parallel replicas
|
||||
assert (
|
||||
node.query(f"SELECT count(), min(key), max(key), sum(key) FROM {table_name}_d")
|
||||
node.query(
|
||||
f"SELECT count(), min(key), max(key), sum(key) FROM {table_name}_d",
|
||||
settings={
|
||||
"allow_experimental_parallel_reading_from_replicas": 0,
|
||||
},
|
||||
)
|
||||
== expected_result
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user