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

SocketServer.Processor should catch exception and close the socket properly in configureNewConnections.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      We see an increasing number of sockets in CLOSE_WAIT status in our production environment in recent couple of days. From the thread dump it seems one of the Processor thread has died but the acceptor was still putting many new connections its new connection queue.

      The cause of dead Processor thread was due to we are not catching all the exceptions in the Processor thread. For example, in our case it seems to be an exception thrown in configureNewConnections().

      Attachments

        1. KAFKA-2353_2015-07-22_17:51:42.patch
          12 kB
          Jiangjie Qin
        2. KAFKA-2353_2015-07-21_22:02:24.patch
          9 kB
          Jiangjie Qin
        3. KAFKA-2353.patch
          6 kB
          Jiangjie Qin

        Activity

          People

            becket_qin Jiangjie Qin
            becket_qin Jiangjie Qin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: