li4wang opened a new pull request, #2321:
URL: https://github.com/apache/zookeeper/pull/2321

   This PR implements automatic HostProvider selection based on connection 
string format, enabling ZooKeeper clients to automatically choose the 
appropriate HostProvider (e.g. DnsSrvHostProvder and StaticHostProvider) 
implementation without manual configuration.
   
   The summary of the changes are :
   
   - HostProviderFactory: New factory class that checks connection strings and 
instantiates appropriate HostProvider based on the detected format
   - ConnectStringParser Enhancement: Extended to detect and validate DNS SRV 
connection string formats, adding support for dns-srv:// prefix detection
   - ZooKeeper Constructor Integration: Updated ZooKeeper constructors to use 
HostProviderFactory for automatic provider creation when no custom HostProvider 
is specified
   
   
   
   
   
   
   
   
   
   


-- 
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