You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Greg Harris (Jira)" <ji...@apache.org> on 2024/05/10 23:27:00 UTC
[jira] [Created] (KAFKA-16703) SocketServer leaks ServerSocketChannel when port is already in-use
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)