Kafka
  1. Kafka
  2. KAFKA-1279

SocketServer.shutdown() doesn't close open connections

    Details

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

      Description

      SocketServer.shutdown() stops the selector thread but doesn't actually close all the existing connections.

      In normal operations this doesn't matter much because right after shutting down the socket server the process exits which closes all the connections. However we found this issue during unit testing--essentially we are leaking all the connections so shutdown() doesn't actually cause any error at all on the client which is still able to write to the socket and just never receives a response.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        8h 22m 1 Jay Kreps 25/Feb/14 03:31
        Tony Stevenson made changes -
        Workflow Apache Kafka Workflow [ 13052690 ] no-reopen-closed, patch-avail [ 13055340 ]
        Tony Stevenson made changes -
        Workflow no-reopen-closed, patch-avail [ 12844101 ] Apache Kafka Workflow [ 13052690 ]
        Jay Kreps made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Jay Kreps added a comment -

        Created reviewboard https://reviews.apache.org/r/18441/
        against branch trunk

        Show
        Jay Kreps added a comment - Created reviewboard https://reviews.apache.org/r/18441/ against branch trunk
        Jay Kreps made changes -
        Field Original Value New Value
        Attachment KAFKA-1279.patch [ 12630820 ]
        Jay Kreps created issue -

          People

          • Assignee:
            Jay Kreps
            Reporter:
            Jay Kreps
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development