-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clients for subscription with max_age and max_inactivity gets no new messages #1152
Comments
With max_inactivity, it is not surprising that if a channel is deleted, and later recreated, the sequence of the first message will start at 1. What it is surprising, is that a channel should not be deleted if there is active consumers. Some questions:
If you were not running with debug, could you re-run with debug so that maybe we capture the events that lead to this situation? For now, if you want all your consumers to start receiving again (the 2 messages currently in the channel), you would have to unsubscribe them and restart them with the "deliver all" subscription option. Also, I would recommend that you upgrade to the latest v0.20.0 release as time permits. |
Hello,
with this assumption I totally agree.
Not for streaming, only for NATS
YES: sd:true
Out services run in Azure Kubernetes Container and the log is captured by elastic. Up to now the considered range was 30d. I just had it changed to 60 days. I think the deliver all option is not expedient for me. Because not all of the services are managed by me. Furthermore I have to change them back... Is there a possibility to change the "LastSend" - Items to 0 or 1.... in the database/by API or something like that. We will update the system as soon as possible to 0.20.0 |
What start option are they using? What I was saying was to stop the apps, have them unsubscribe (which will delete the durable subscription) and then start it again. I assumed that they are using deliver all, if not, let me know, but for durables, the start sequence has meaning only the first time the durable is created, so I would be surprised if they use something different than deliver all.
No, the only way is as I described above, unsubscribe and restart them. |
Hello,
in our current system setup we repeatedly observed the following behavior.
There are some topics like 'topic.message' where only a few messages are published. Sometimes up to months there are no new updates.
It seems like the sequence-number is "reset" to 0(1) again after some time of inactivity and the client remain high(93).
Now after we have published 2 new messages the first and last seq are 1 and 2.
All connected clients stay at the last consumed number (93).
I also restarted one client (ClientA)
I hope you can help me.
Best regard
Chris
System Setup:
Nats Version: 2.1.8
Nats Streaming Version: 0.18.0
Topic: ~30
Clients: ~20
Nats Streaming Config
Nats Streaming Output (url: http://localhost/streaming/channelsz?channel=topic.message&subs=1)
The text was updated successfully, but these errors were encountered: