[
https://issues.apache.org/jira/browse/KAFKA-21092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-21092.
------------------------------------
Fix Version/s: 4.5.0
Resolution: Fixed
> 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: majialong
> Priority: Minor
> Fix For: 4.5.0
>
>
> {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
(v10.3.26#10030026)