Skip to content

JetStream consumers not processing messages #2028

@irinafratila

Description

@irinafratila

Observed behavior

Hi all,
We are observing an inconsistent issue while migrating from core NATS pub/sub to JetStream pub/sub.
In a 3-node NATS cluster, some JetStream consumers are created successfully but never process messages. These consumers appear active, no JS client errors are reported, but in their state Last Delivery: never and Unprocessed messages accumulate.

Expected behavior

All consumers pull messages from the stream 100% of the time they are brought up.

Server and client version

v0.3.1

Host environment

No response

Steps to reproduce

This behavior is reproducible when scaling NATS dynamically, but not 100% of the time. Reproducibility increases with higher numbers of publishers and consumers. In our testing, the same workload on a statically configured 3-node cluster does not show this behavior.
Please see this repository for full reproduction steps, logs, and sample code: https://github.com/irinafratila/nats-jetstream

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSuspected defect such as a bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions