-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Interest based stream sequence reset to 0 when upgrading to 2.10.25 and causes consumer error #6611
Comments
Thanks for the report, I think I may know what's happening here but will look into it. |
Any update on this? There seem to be several similar problems, some closed and some still open... |
first would recommend to upgrade to v2.10.26 since there was a regression with interest based streams on v2.10.25: #6526 |
I already tested it with v2.10.26 and it also returned the same error.
|
By any chance did you see abnormal termination of NATS after which you have started seeing this issue ? |
I have not seen any previous errors in the logs in version 2.9.15 but it is true that in the test environment where this instance of NATS was running it would restart from time to time without properly stopping the NATS server. This has been fixed, but it doesn't seem to be a problem in version 2.9.15. |
Observed behavior
Upgrading NATS from version 2.9.15 to version 2.10.25 has caused errors in Jetstream persistence. The first time I executed version 2.10.25 apparently there were no problems, at least the log was clean. But when I stopped NATS and executed it a second time, I got warnings about errors in the stream and finally the consumer was incorrect. I have tested it on 3 servers configured the same way and the error is the same with this stream.
This stream is empty and is configured with Interest based retention. There is another empty stream with Limits based retention and had no problems.
I also tried publishing messages in the stream in v2.9.15 so that it is not empty when updating and in that case there were no problems.
Then I tried purging the stream to leave it empty again, and there were no problems there either.
However, if I consume the new messages with the existing durable consumer and it becomes empty again, the error returns on update.
This problem seems to be similar #5412
Full log here: nats-server.log
This is the status of the stream and the consumer BEFORE the warning:
And AFTER the warning. The sequence of the stream has been reset to 0:
Expected behavior
The sequence should not have been reset and the consumer should remain valid.
Server and client version
Tested with version 2.10.25 and 2.10.26 and NATS CLI
Host environment
Running a single-node NATS JetStream in Windows with this configuration:
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: