More stable test_no_ttl_merges_in_busy_pool

This commit is contained in:
alesapin 2020-09-15 17:53:55 +03:00
parent 018f596d21
commit 6130cd7365

View File

@ -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")