Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2817

Closing an unconnected SslTransport get an invalid close state exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: core
    • Labels:
      None

      Description

      Saw the following in our system test. When shutting down a broker, in a short window, the controller can't establish socket connection to the shutdown broker and tries to close it. It hit the following exception. This may leak the underlying socket.

      [2015-11-11 07:24:17,253] WARN Failed to send SSL Close message (org.apache.kafka.common.network.SslTransportLayer)
      java.io.IOException: Invalid close state, will not send network data.
      at org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:156)
      at org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:50)
      at org.apache.kafka.common.network.Selector.close(Selector.java:448)
      at org.apache.kafka.common.network.Selector.poll(Selector.java:316)
      at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:270)
      at kafka.utils.NetworkClientBlockingOps$.recurse$1(NetworkClientBlockingOps.scala:128)
      at kafka.utils.NetworkClientBlockingOps$.kafka$utils$NetworkClientBlockingOps$$pollUntilFound$extension(NetworkClientBlockingOps.scala:139)
      at kafka.utils.NetworkClientBlockingOps$.kafka$utils$NetworkClientBlockingOps$$pollUntil$extension(NetworkClientBlockingOps.scala:105)
      at kafka.utils.NetworkClientBlockingOps$.blockingReady$extension(NetworkClientBlockingOps.scala:58)
      at kafka.controller.RequestSendThread.brokerReady(ControllerChannelManager.scala:225)
      at kafka.controller.RequestSendThread.liftedTree1$1(ControllerChannelManager.scala:172)
      at kafka.controller.RequestSendThread.doWork(ControllerChannelManager.scala:171)
      at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:63)

        Attachments

          Activity

            People

            • Assignee:
              ijuma Ismael Juma
              Reporter:
              junrao Jun Rao
              Reviewer:
              Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: