Gábor Gyimesi created MINIFICPP-2356:
----------------------------------------
Summary: Kafka docker tests fail with zookeeper connection issue
Key: MINIFICPP-2356
URL: https://issues.apache.org/jira/browse/MINIFICPP-2356
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Reporter: Gábor Gyimesi
Assignee: Gábor Gyimesi
Kafka broker fails to start up in docker tests with the following issue,
failing to connect to Zookeeper:
{code:java}
[2024-05-02 08:22:54,358] INFO [ZooKeeperClient Kafka server] Waiting until
connected. (kafka.zookeeper.ZooKeeperClient)
[2024-05-02 08:22:54,387] INFO Opening socket connection to server
172.17.0.1/172.17.0.1:2181. (org.apache.zookeeper.ClientCnxn)
[2024-05-02 08:22:54,388] INFO SASL config status: Will not attempt to
authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
[2024-05-02 08:23:00,361] INFO [ZooKeeperClient Kafka server] Closing.
(kafka.zookeeper.ZooKeeperClient)
[2024-05-02 08:23:12,372] WARN Client session timed out, have not heard from
server in 18012ms for session id 0x0 (org.apache.zookeeper.ClientCnxn)
[2024-05-02 08:23:12,375] WARN An exception was thrown while closing send
thread for session 0x0. (org.apache.zookeeper.ClientCnxn)
org.apache.zookeeper.ClientCnxn$SessionTimeoutException: Client session timed
out, have not heard from server in 18012ms for session id 0x0
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1258)
[2024-05-02 08:23:12,485] INFO Session: 0x0 closed
(org.apache.zookeeper.ZooKeeper)
[2024-05-02 08:23:12,486] INFO EventThread shut down for session: 0x0
(org.apache.zookeeper.ClientCnxn)
[2024-05-02 08:23:12,487] INFO [ZooKeeperClient Kafka server] Closed.
(kafka.zookeeper.ZooKeeperClient)
[2024-05-02 08:23:12,489] ERROR Fatal error during KafkaServer startup. Prepare
to shutdown (kafka.server.KafkaServer)
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for
connection while in state: CONNECTING
at
kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:254)
at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:108)
at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1981)
at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:491)
at kafka.server.KafkaServer.startup(KafkaServer.scala:201)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
[2024-05-02 08:23:12,490] INFO shutting down (kafka.server.KafkaServer)
[2024-05-02 08:23:12,496] INFO App info kafka.server for 1 unregistered
(org.apache.kafka.common.utils.AppInfoParser)
[2024-05-02 08:23:12,497] INFO shut down completed (kafka.server.KafkaServer)
[2024-05-02 08:23:12,497] ERROR Exiting Kafka. (kafka.Kafka$)
[2024-05-02 08:23:12,497] INFO shutting down (kafka.server.KafkaServer) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)