[ https://issues.apache.org/jira/browse/KAFKA-19515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
黃竣陽 updated KAFKA-19515: ------------------------ Labels: need-kip (was: ) > Align broker and controller "advertised.listeners" and "listeners" behaviour > ---------------------------------------------------------------------------- > > Key: KAFKA-19515 > URL: https://issues.apache.org/jira/browse/KAFKA-19515 > Project: Kafka > Issue Type: Improvement > Reporter: 黃竣陽 > Assignee: 黃竣陽 > Priority: Minor > Labels: need-kip > > In the controller, we can configure the {{listeners}} setting as > {{{}CONTROLLER://0.0.0.0:9093{}}}, which means it will bind to all network > interfaces. If {{advertised.listeners}} is not explicitly set, the controller > will automatically infer it from the {{listeners}} value. > However, the behavior is different in the broker. If we set {{listeners}} to > {{{}PLAINTEXT://0.0.0.0:9093{}}}, the broker will throw an exception instead > of automatically inferring the {{advertised.listeners}} value. > We should align this behavior—either both should throw an exception when > using a wildcard address ({{{}0.0.0.0{}}}), or both should automatically > infer {{advertised.listeners}} from {{{}listeners{}}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)