You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# When we do sequential queries, the timeout converges the minimum
283
-
284
-
_insert_queries_sequentially(
285
-
table_name,
286
-
settings,
287
-
iterations=50,
288
-
max_values_size=1000,
289
-
array_size_range=[10, 50],
290
-
)
291
-
node.query("SYSTEM FLUSH LOGS")
292
-
select_log_query=f"SELECT countIf(timeout_milliseconds - {min_ms} < 25) FROM (SELECT timeout_milliseconds FROM system.asynchronous_insert_log ORDER BY event_time DESC LIMIT 10)"
293
-
res=node.query(select_log_query)
294
-
assertint(res) >=5
295
-
296
-
# When we do many parallel queries, the timeout converges the maximum
297
-
298
-
_insert_queries_in_parallel(
299
-
table_name,
300
-
settings,
301
-
thread_num=10,
302
-
tasks=1000,
303
-
max_values_size=1000,
304
-
array_size_range=[10, 15],
305
-
)
306
-
node.query("SYSTEM FLUSH LOGS")
307
-
select_log_query=f"SELECT countIf({max_ms} - timeout_milliseconds < 100) FROM (SELECT timeout_milliseconds FROM system.asynchronous_insert_log ORDER BY event_time DESC LIMIT 10)"
308
-
res=node.query(select_log_query)
309
-
assertint(res) >=5
310
-
311
-
node.query("DROP TABLE IF EXISTS {} SYNC".format(table_name))
0 commit comments