f1amingo opened a new pull request, #1501: URL: https://github.com/apache/rocketmq-clients/pull/1501
### Summary Two settlement failures in the push consumer leave a message in the process queue cache, holding its consumption permit until shutdown times out: FIFO local redelivery throws `TypeError` when a custom logger omits the optional `debug` method (hidden by `(consumer as any).logger?.debug(...)`), and a settlement that throws synchronously in standard consumption is only logged. This PR fixes both, removes the `any` casts in `ProcessQueue`, and adds unit tests for the push consumption path. ### Changes - `ProcessQueue` receives the consumer logger, client id and lite flag through an optional fourth constructor argument; existing three-argument calls keep working. - FIFO local redelivery calls `logger.debug?.()`, so a logger without `debug` no longer strands the message. - `StandardConsumeService` nacks a message whose settlement throws, releasing its cache entry and permit (Java only logs here; Node releases the permit to keep receiving). - Add unit tests for the `ProcessQueue` receive loop and settlement, FIFO and standard consumption, `PushConsumer` assignment scanning, `PushSubscriptionSettings`, `Assignments` and `PushConsumerGaugeObserver`. ### API Impact `ProcessQueue` gains an optional fourth constructor argument; no export is added or removed and no existing signature changes. Existing valid calls upgrade without changes. ### How Did You Test This Change? - `npm run lint`, `npx tsc -p tsconfig.prod.json --noEmit` and `npm run cov` pass on Node 18 and Node 24 (291 tests). - With the source reverted, 4 new tests fail: logger injection (2), FIFO redelivery with a logger without `debug` (1), and eviction after a settlement failure (1). -- 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]
