mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
Merge branch 'async_load_system_database' of github.com:ClickHouse/ClickHouse into async_load_system_database
This commit is contained in:
commit
a52465679f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user