huangjun0124 opened a new issue, #21882: URL: https://github.com/apache/pulsar/issues/21882
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Version 2.11.3 ### Minimal reproduce step On centos8.3, jdk 17.0.5, run pulsar with standalone mode, no configuration files or any other things changed, the pulsar functions ok. Some day the server is shutdown because of power failure, when we restart the server and pulsar again, the pulsar broker can not be connected from outside the server itself. ### What did you expect to see? pulsar client on another machine should produce or consume message correctly from pulsar server ### What did you see instead? run produce command from another machine: `bin/pulsar-client produce \ persistent://public/default/test \ -n 1 \ -m "Hello Pulsar"` see following logs: `2024-01-11T20:04:41,172+0800 [pulsar-client-io-1-1] INFO org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x8ad15e08, L:/192.168.1.220:47904 - R:192.168.1.122/192.168.1.122:6650]] Connected to server 2024-01-11T20:04:41,468+0800 [pulsar-client-io-1-1] INFO org.apache.pulsar.client.impl.ProducerStatsRecorderImpl - Pulsar client config: {"serviceUrl":"pulsar://192.168.1.122:6650/", ...} 2024-01-11T20:04:41,509+0800 [pulsar-client-io-1-1] WARN org.apache.pulsar.client.impl.ConnectionPool - Failed to open connection to localhost/<unresolved>:6650 : io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:6650` explain: `192.168.1.220` is client machine, `192.168.1.122` is pulsar machine, the first connect is ok, but then it failed suggesting that it is trying to connect to localhost rather than the real broker [`192.168.1.122`] ### Anything else? What may possibly cause this exception? ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
