Open mohamedsaleem18 opened 2 months ago
Could you share additional information..
Push or Pull consumer? - Pull consumer What client lib and version? - Java NATS client, jnats 2.18.1 What does consumer info (NATS cli) report? Consumer was active What does stream info report? Messages were pending in the stream but consumers were connected as well.
Can you share the consumer info? We want to see if there are pull requests waiting or not etc..
When we encounter the issue again, I will provide the details of consumer info.
Observed behavior
NATS cluster :
There are pending messages in the stream. Though consumers are connected to NATS, consumers are becoming stale. The workaround consists of purging the stream, deleting the affected consumers, and restarting the service they originate from. This recreates them in a healthy state to resolve the issue. This issue occurs at least once every day. Client side NATS configuration:
Expected behavior
Consumer should not go stale. In case if Consumer is stale then NATS should automatically modify the consumer status as inactive or drop the consumer.
Server and client version
NATS cluster :
Host environment
VM - OS details NAME="Oracle Linux Server" VERSION="8.10"
Steps to reproduce
Please refer description section for workaround to resolve this issue.