[ 
https://issues.apache.org/jira/browse/KAFKA-14658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colin McCabe updated KAFKA-14658:
---------------------------------
    Summary: When listening on fixed ports, defer port opening until we're 
ready  (was: Do not open broker ports until we are ready to accept traffic)

> When listening on fixed ports, defer port opening until we're ready
> -------------------------------------------------------------------
>
>                 Key: KAFKA-14658
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14658
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Colin McCabe
>            Assignee: Colin McCabe
>            Priority: Major
>
> We should not open the ports on the broker until we are ready to accept 
> traffic. This is a particular concern when in KRaft mode, since in that mode, 
> we create the SocketServer object earlier in the startup process than when in 
> ZK mode.
> The approach taken in this PR is to defer opening the acceptor port until 
> Acceptor.start is called. There is one exception to this rule, however: when 
> we are binding to a random port (that is, binding to "port 0"), we open the 
> port 



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

Reply via email to