[
https://issues.apache.org/jira/browse/KAFKA-21555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-21555.
------------------------------------
Fix Version/s: 4.5.0
Resolution: Fixed
> ControllerServer should not close NodeToControllerChannelManagerImpl
> --------------------------------------------------------------------
>
> Key: KAFKA-21555
> URL: https://issues.apache.org/jira/browse/KAFKA-21555
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Minor
> Fix For: 4.5.0
>
>
>
> {code:java}
> registrationChannelManager = new NodeToControllerChannelManagerImpl(
> controllerNodeProvider,
> time,
> metrics,
> config,
> "registration",
> s"controller-${config.nodeId}-",
> 5000)
> registrationChannelManager.start()
> registrationManager.start(registrationChannelManager)
> {code}
> registrationChannelManager is already assigned to
> {{{}ControllerRegistrationManager{}}}, so the lifecycle is up to
> {{ControllerRegistrationManager}} as well. Closing it two times will produce
> the following scary log.
>
> {code:java}
> WARN [NodeToControllerChannelManager id=3001 name=registration] Attempting to
> close NetworkClient that has already been closed.
> {code}
>
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)