Chia-Ping Tsai created KAFKA-21555:
--------------------------------------

             Summary: 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


 
{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)

Reply via email to