You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2026/09/14 09:50:00 UTC

[jira] [Created] (KAFKA-21092) The closed processor should remove the channel builder from reconfigurable list

Chia-Ping Tsai created KAFKA-21092:
--------------------------------------

             Summary: The closed processor should remove the channel builder from reconfigurable list
                 Key: KAFKA-21092
                 URL: https://issues.apache.org/jira/browse/KAFKA-21092
             Project: Kafka
          Issue Type: Bug
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


{code:java}
  protected[network] def createSelector(channelBuilder: ChannelBuilder): KSelector = {
    channelBuilder match {
      case reconfigurable: Reconfigurable => config.addReconfigurable(reconfigurable)
      case _ =>
    }
    new KSelector(
      maxRequestSize,
      connectionsMaxIdleMs,
      failedAuthenticationDelayMs,
      metrics,
      time,
      "socket-server",
      metricTags,
      false,
      true,
      channelBuilder,
      memoryPool,
      logContext)
  } {code}
The processor lets Selector control the life of ChannelBuilder, but Selector can't remove the ChannelBuilder from the reconfigurable list. It is probably a kind of leak that the closed ChannelBuilder is still in the list.



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