Fix: make test_read_only_table more stable

+ add retries to INSERT queries after keeper node restart
This commit is contained in:
Igor Nikonov 2022-11-17 12:40:14 +00:00
parent 7beb58b0cf
commit d2d6e75d97

View File

@ -84,6 +84,6 @@ def test_restart_zookeeper(start_cluster):
time.sleep(5)
for table_id in range(NUM_TABLES):
node1.query(
f"INSERT INTO test_table_{table_id} VALUES (6), (7), (8), (9), (10);"
node1.query_with_retry(
sql = f"INSERT INTO test_table_{table_id} VALUES (6), (7), (8), (9), (10);", retry_count=10, sleep_time=1
)