Greg Harris created KAFKA-16703:
-----------------------------------

             Summary: SocketServer leaks ServerSocketChannel when port is 
already in-use
                 Key: KAFKA-16703
                 URL: https://issues.apache.org/jira/browse/KAFKA-16703
             Project: Kafka
          Issue Type: Test
            Reporter: Greg Harris
            Assignee: Greg Harris


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to