apache / pulsar-client-node

Apache Pulsar NodeJS Client
https://pulsar.apache.org/
Apache License 2.0
148 stars 86 forks source link

Redelivery Count not set leading to indefinite redelivery #368

Closed fabianwikstrom closed 8 months ago

fabianwikstrom commented 8 months ago

Hello! We run Pulsar Consumer with:

We are running into an issue where for failing message processing the messages are redelivered indefinitely. At first, we explicitly .negativeAcknowledge the messages. Then we tried to rely on the ackTimeout. Neither worked.

If we inspect the messages that are stuck in a loop we can see that they do not have a redeliveryCount set which we believe is leading to the infinite redelivery

Any help appreciated :)

fabianwikstrom commented 8 months ago

batchIndexAckEnabled was enabled on consumer but not on broker which led to this bug