shibd opened a new pull request, #487:
URL: https://github.com/apache/pulsar-client-node/pull/487

   ## Motivation
   
   The Node.js client did not expose the cluster-level failover support added 
in the C++ client, so applications could not automatically switch from a 
primary Pulsar cluster to a secondary cluster when the primary became 
unavailable.
   
   ## Changes
   
   - Add `serviceUrlProvider` support to `ClientConfig` and wire it to the C++ 
`pulsar::AutoClusterFailover` implementation.
   - Support primary and secondary service info entries with optional 
per-cluster authentication and TLS trust cert configuration.
   - Preserve the existing `serviceUrl` client path and validate that 
`serviceUrl` and `serviceUrlProvider` are not configured together.
   - Keep authentication bindings alive for top-level and per-cluster 
authentication objects.
   - Add a dedicated `failoverClientTest` integration test that starts two 
standalone Pulsar clusters, stops the primary, and verifies the same client can 
continue producing and consuming through the secondary.
   
   ## Validation
   
   - `npm run type-check`
   - `./node_modules/.bin/node-pre-gyp build`
   - `npx jest tests/failoverClientTest.test.js --runInBand`
   
   Related to #479.
   


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