mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
More stable test_no_ttl_merges_in_busy_pool
This commit is contained in:
parent
018f596d21
commit
6130cd7365
@ -71,11 +71,16 @@ def test_no_ttl_merges_in_busy_pool(started_cluster):
|
||||
|
||||
node1.query("SYSTEM START TTL MERGES")
|
||||
|
||||
rows_count = []
|
||||
while count_running_mutations(node1, "test_ttl") == 6:
|
||||
print "Mutations count after start TTL", count_running_mutations(node1, "test_ttl")
|
||||
assert node1.query("SELECT count() FROM test_ttl") == "30\n"
|
||||
rows_count.append(int(node1.query("SELECT count() FROM test_ttl").strip()))
|
||||
time.sleep(0.5)
|
||||
|
||||
# at least several seconds we didn't run any TTL merges and rows count equal
|
||||
# to the original value
|
||||
assert sum([1 for count in rows_count if count == 30]) > 4
|
||||
|
||||
assert_eq_with_retry(node1, "SELECT COUNT() FROM test_ttl", "0")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user