You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Colin McCabe (Jira)" <ji...@apache.org> on 2023/01/27 18:43:00 UTC

[jira] [Updated] (KAFKA-14658) Do not open broker ports until we are ready to accept traffic

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

Colin McCabe updated KAFKA-14658:
---------------------------------
    Description: 
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 

  was: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.


> Do not open broker ports until we are ready to accept traffic
> -------------------------------------------------------------
>
>                 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)