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

SocketServer leaks ServerSocketChannel when port is already in-use

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.8.0
    • None
    • None

    Description

      The SocketServer#openServerSocket method creates a serverSocket, and then attempts to bind it to the selected port. If the port is already in-use, an exception is propagated and the serverSocket is never closed.

      This causes KafkaServerTest#testListenerPortAlreadyInUse to leak sockets.

      Attachments

        Issue Links

          Activity

            People

              gharris1727 Greg Harris
              gharris1727 Greg Harris
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: