Ryan P created KAFKA-6893: ----------------------------- Summary: Processors created after acceptor started which can cause in a brief refusal to accept connections Key: KAFKA-6893 URL: https://issues.apache.org/jira/browse/KAFKA-6893 Project: Kafka Issue Type: Bug Affects Versions: 1.1.0 Reporter: Ryan P Assignee: Rajini Sivaram
The acceptor starts before the the processor threads are actually created which creates a very small window in which connections to the broker will fail. When the acceptor takes on a new connection an illegal arithmetic exception is thrown as shown below. Exception: / by zero at kafka.network.Acceptor.run(SocketServer.scala:391) at java.lang.Thread.run(Thread.java:748) [2018-05-09 15:34:05,153] ERROR Error while accepting connection (kafka.network.Acceptor) java.lang.ArithmeticException: / by zero at kafka.network.Acceptor.run(SocketServer.scala:391) at java.lang.Thread.run(Thread.java:748) [2018-05-09 15:34:05,153] ERROR Error while accepting connection (kafka.network.Acceptor) java.lang.ArithmeticException: / by zero at kafka.network.Acceptor.run(SocketServer.scala:391) at java.lang.Thread.run(Thread.java:748) [2018-05-09 15:34:05,153] INFO Awaiting socket connections on lontkfk02.mwam.local:9093. (kafka.network.Acceptor) [2018-05-09 15:34:05,268] INFO [SocketServer brokerId=2] Started 2 acceptor threads (kafka.network.SocketServer) -- This message was sent by Atlassian JIRA (v7.6.3#76005)