From 7e904ac789700639ddd2f1371c4a2743d0bda9ec Mon Sep 17 00:00:00 2001 From: Alexander Tokmakov Date: Tue, 22 Mar 2022 19:05:37 +0100 Subject: [PATCH] more logs --- src/Common/ZooKeeper/ZooKeeperImpl.cpp | 2 +- tests/integration/test_zookeeper_config_load_balancing/test.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Common/ZooKeeper/ZooKeeperImpl.cpp b/src/Common/ZooKeeper/ZooKeeperImpl.cpp index 0627a70193f..d3c993344b6 100644 --- a/src/Common/ZooKeeper/ZooKeeperImpl.cpp +++ b/src/Common/ZooKeeper/ZooKeeperImpl.cpp @@ -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()); } } diff --git a/tests/integration/test_zookeeper_config_load_balancing/test.py b/tests/integration/test_zookeeper_config_load_balancing/test.py index 79f21ad3eca..f48b3168325 100644 --- a/tests/integration/test_zookeeper_config_load_balancing/test.py +++ b/tests/integration/test_zookeeper_config_load_balancing/test.py @@ -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 = '{}<' 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')