zhangjialong666 opened a new issue, #502:
URL: https://github.com/apache/pulsar-client-cpp/issues/502

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing 
similar.
   
   
   ### Version
   
   latest
   
   ### Minimal reproduce step
   
   1. Configure a DNS entry (e.g., pulsar.example.com) that resolves to 
multiple IP addresses.
   2. Set the Pulsar C++ client serviceUrl to use this domain (e.g., 
pulsar://pulsar.example.com:6650).
   3. Start the client and establish a connection.
   4. Make one of the backend IPs unreachable (e.g., shut down the broker node 
or block traffic).
   5. Observe the client behavior.
   
   ### What did you expect to see?
   
   - The client should retry failed connections with other resolved IPs.
   - The client should automatically switch to a reachable IP without requiring 
manual reconfiguration or restart.
   
   ### What did you see instead?
   
   - The client attempts to connect only to one IP (usually the first one 
resolved).
   - If that IP is unavailable, the client does not switch to other available 
IPs, leading to connection failures.
   
   ### Anything else?
   
   - This limits high availability when one backend node fails or becomes 
unreachable.
   - The Java client is able to handle domains with multiple IPs by retrying 
other addresses. Having the C++ client behave consistently would improve 
resiliency.
   - DNS resolution frequency and TTL may also affect the current behavior.
   
   ### 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]

Reply via email to