meleagle opened a new issue #7470:
URL: https://github.com/apache/pulsar/issues/7470
**Describe the bug**
The broker url for a broker will be set to whatever the advertisedAddress
and brokerServicePort are set to in the config when I only use a single
advertised listener. With pulsar 2.6.0 and trying to use the
advertisedListeners list, the broker url is being set to the canonical host
name instead of the internalListenerName or at least one of the
advertisedListeners in the provided list like I would expect it to.
**To Reproduce**
Steps to reproduce the behavior:
1. Set the advertisedAddress and brokerServicePort to whatever is needed
2. Start pulsar and see that the broker url matches these two properties
combined
3. Use the advertisedListeners and internalListenerName properties to set
the advertised addresses
4. Start pulsar and see that the broker url is not any of the values in the
provided list but instead is set to the canonical host name
**Expected behavior**
I would think that the broker url with multiple advertised listeners would
be set to whatever the internalListenerName or at least one of the entries in
the listeners list instead of the canonical host name.
**Desktop (please complete the following information):**
- Windows 10 with WSL 1
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]