more logs

This commit is contained in:
Alexander Tokmakov 2022-03-22 19:05:37 +01:00
parent bc5a689899
commit 7e904ac789
2 changed files with 3 additions and 1 deletions

View File

@ -451,7 +451,7 @@ void ZooKeeper::connect(
}
else
{
LOG_TEST(log, "Connected to ZooKeeper at {} with session_id {}", socket.peerAddress().toString(), session_id);
LOG_TEST(log, "Connected to ZooKeeper at {} with session_id {}{}", socket.peerAddress().toString(), session_id, fail_reasons.str());
}
}

View File

@ -11,6 +11,7 @@ node2 = cluster.add_instance('nod2', with_zookeeper=True,
node3 = cluster.add_instance('nod3', with_zookeeper=True,
main_configs=["configs/zookeeper_load_balancing.xml"])
def change_balancing(old, new, reload=True):
line = '<zookeeper_load_balancing>{}<'
old_line = line.format(old)
@ -18,6 +19,7 @@ def change_balancing(old, new, reload=True):
for node in [node1, node2, node3]:
node.replace_in_config('/etc/clickhouse-server/config.d/zookeeper_load_balancing.xml', old_line, new_line)
if reload:
node.query("select '{}', '{}'".format(old, new))
node.query('system reload config')