f1amingo opened a new pull request, #1502:
URL: https://github.com/apache/rocketmq-clients/pull/1502

   ### Summary
   
   `shutdown()` skipped all cleanup once notifying any endpoint failed, a 
client that was never started kept the process alive, and a released or 
reconnecting telemetry session crashed the process on a late server error, a 
write, or a failing command handler. Startup also continued when only some 
topic routes were fetched. Align these paths with the Java client.
   
   ### Changes
   
   - Notify termination to all endpoints concurrently and only log failures, so 
telemetry, channels and meters are always released.
   - Fail startup when any topic route is still unavailable after 3 attempts, 
matching `ClientImpl#startUp`.
   - Unref the idle RPC client check timer.
   - Keep an error listener on closed telemetry streams, drop writes while no 
stream is open, and catch handler exceptions like `ClientSessionImpl#onNext`.
   - Warn when an interceptor is added while running; fix the idle reclaim log 
arguments.
   - Add unit tests for shutdown, startup failure, heartbeat recovery, route 
cache, telemetry command dispatch, `RpcClient` deadlines and `RpcClientManager` 
delegation.
   
   ### Public API Impact
   
   No signature changes. `shutdown()` resolves instead of rejecting when a 
notification fails. `startup()` now rejects when any configured topic has no 
route after retries, where it previously continued if another topic succeeded; 
fix the topic list or handle the rejection. Other existing calls upgrade 
without changes.
   
   ### How Did You Test This Change?
   
   297 unit tests pass on Node.js 18 and 24; 10 of the new tests fail without 
the fix. Lint and production/test type checks pass. A constructed but never 
started `Producer` now exits instead of hanging.
   


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