You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NATS consumers not pulling messages from Jetstream even though consumer status shows active. Restart of client application required as workaround to resolve the issue. [v2.10.18]
#5839
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:
nats {
enabled=trueaddress="localhost:4222"bufferSize=8timeout=5000errorListener="io.nats.client.impl.ErrorListenerLoggerImpl"streams {
xxxStream {
name="lpsn32"subject="xxx-response-details"consumerName="xxxResponseHandler"handler="xxxResponseHandler"batchSize=1# pollingDuration is in mspollingDuration=100
}
}
protocol="stream"
}
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 :
3 Nodes.
NATS version :- 2.10.18
Host environment
VM - OS details
NAME="Oracle Linux Server"
VERSION="8.10"
Steps to reproduce
Publish message to stream when consumer is connected.
Consumer will consume the messages without any issue.
If there is idle time or after long time, consumer goes stale. Messages are pending in the stream but consumer are not consuming the message. NATS shows consumer as active.
Please refer description section for workaround to resolve this issue.
The text was updated successfully, but these errors were encountered:
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.
When we encounter the issue again, I will provide the details of consumer info.
wallyqs
changed the title
NATS consumers not pulling messages from Jetstream even though consumer status shows active. Restart of client application required as workaround to resolve the issue.
NATS consumers not pulling messages from Jetstream even though consumer status shows active. Restart of client application required as workaround to resolve the issue. [v2.10.18]
Sep 4, 2024
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.
The text was updated successfully, but these errors were encountered: