f1amingo opened a new pull request, #1495: URL: https://github.com/apache/rocketmq-clients/pull/1495
### Summary Shutting down one client closed the process-wide logger state it did not own, so other clients and late callbacks failed with `log stream had been closed`, and an injected logger was closed on the caller's behalf. Aborting a consumer could also leave delayed consumption promises pending forever and keep retrying FIFO messages locally. Separately, a message with `priority: 0` was sent as NORMAL instead of PRIORITY. ### Changes - Share one default logger per process, unbuffered so it never keeps the process alive or drops lines on exit; clients no longer close any logger on shutdown. - `ConsumeService.abort()` settles pending delayed consumption with `FAILURE` after clearing its timers. - `ProcessQueue.eraseFifoMessage()` skips local retry and settlement once aborted and only releases the cache permit. - `PublishingMessage` checks `priority !== undefined`, so `priority: 0` is classified as PRIORITY. ### How Did You Test This Change? - New unit tests in `test/consumer/ShutdownLifecycle.test.ts` and `test/message/PriorityMessage.test.ts`; existing ProcessQueue / FifoConsumeService / BaseClient / PushConsumerShutdownRace tests pass. - A process using the default logger exits right after client shutdown. - `npm run lint` and `npm run build` pass; an E2E regression suite against a cloud cluster passes with this change. -- 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]
