mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
update
This commit is contained in:
parent
2ec20c5d23
commit
e52b2fb8ae
@ -4256,7 +4256,7 @@ ReservationPtr MergeTreeData::balancedReservation(
|
||||
WriteBufferFromOwnString log_str;
|
||||
writeCString("\nbalancer: \n", log_str);
|
||||
for (const auto & [disk_name, per_disk_parts] : disk_parts_for_logging)
|
||||
writeString(fmt::format(" {}: [{}]\n", disk_name, boost::algorithm::join(per_disk_parts, ", ")), log_str);
|
||||
writeString(fmt::format(" {}: [{}]\n", disk_name, fmt::join(per_disk_parts, ", ")), log_str);
|
||||
LOG_DEBUG(log, log_str.str());
|
||||
|
||||
if (ttl_infos)
|
||||
|
@ -170,15 +170,7 @@ def test_replicated_balanced_merge_fetch(start_cluster):
|
||||
"insert into tmp2 select randConstant() % 2, randomPrintableASCII(16) from numbers(50)"
|
||||
)
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
for _ in range(10):
|
||||
try:
|
||||
print("Syncing replica")
|
||||
node2.query("SYSTEM SYNC REPLICA tbl")
|
||||
break
|
||||
except:
|
||||
time.sleep(0.5)
|
||||
node2.query("SYSTEM SYNC REPLICA tbl", timeout=10)
|
||||
|
||||
check_balance(node1, "tbl")
|
||||
check_balance(node2, "tbl")
|
||||
|
Loading…
Reference in New Issue
Block a user