Merge branch 'async_load_system_database' of github.com:ClickHouse/ClickHouse into async_load_system_database

This commit is contained in:
serxa 2024-10-24 17:34:01 +00:00
commit a52465679f

View File

@ -204,9 +204,12 @@ def test_async_load_system_database(started_cluster):
# Access some system tables that might be still loading
if id > 1:
for j in range(3):
num = random.randint(1, id - 1)
node2.query(f"select count() from system.text_log_{num}_test")
node2.query(f"select count() from system.query_log_{num}_test")
node2.query(
f"select count() from system.text_log_{random.randint(1, id - 1)}"
)
node2.query(
f"select count() from system.query_log_{random.randint(1, id - 1)}"
)
assert (
int(
@ -220,7 +223,9 @@ def test_async_load_system_database(started_cluster):
while True:
node2.query("system flush logs")
count = int(
node2.query("select count() from system.tables where database = 'system' and name in ['query_log', 'text_log']")
node2.query(
"select count() from system.tables where database = 'system' and name in ['query_log', 'text_log']"
)
)
if count == 2:
break