Skip to content

Conversation

@jainamshah102
Copy link

@jainamshah102 jainamshah102 commented Dec 20, 2025

Description

Fix SocketChannel leak during shutdown (KAFKA-16768): reject accepted connections if the target Processor is shutting down and close the channel to avoid leaking SocketChannel instances.

Changes

  1. Acceptor.accept/assign path now checks shouldRun and returns false if the processor is shutting down.
  2. On rejection, close the channel and update quotas via connectionQuotas.closeChannel(this, listenerName, socketChannel) so the socket is closed and bookkeeping is corrected.
@github-actions github-actions bot added triage PRs from the community core Kafka Broker labels Dec 20, 2025
@jainamshah102
Copy link
Author

Copy link

@Pankraz76 Pankraz76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@github-actions github-actions bot added the small Small PRs label Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker small Small PRs triage PRs from the community

2 participants