-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
[bug] The ID specified in XADD is equal or smaller than the target stream top item #768
Comments
As discussed in Centrifugo Telegram group: the root cause here was that The documentation contained old description of defaults used in Centrifugo v4 (previously history meta ttl was 90 days by default). Fixed this and added more clarifications on a proper configuration in centrifugal/centrifugal.dev@51fb304 Need to think more whether it's possible to avoid such situations - we can at least validate ttl values on start. |
Hello, @FZambia! I was getting same error. Maybe you can give me some advice on what to do with this? |
@VanderY hello, I think you are getting errors for already existing streams. Fixing configuration won't help with them automatically, only help with newly created streams. You are using Redis engine right? If yes - then theoretically flushing state in Redis may help to get rid of such errors. If you are using auto recovery and using Centrifugo right on client side – then flushing Redis state should not cause a serious issue for clients as the state must be loaded from your main database since clients will receive insufficient state advices. But I suggest testing this scenario and decide whether it's acceptable. Also, make sure Redis is only used for Centrifugo, otherwise you may need to clean up only Centrifugo keys. If you need to keep information in Redis then the only way here is manual migration of keys. But using Centrifugo as persistent storage is not a recommended pattern - so I believe it's not your use case. |
Found one more related bug which could result into similar issues with Memory Engine – fixed in centrifugal/centrifuge#366 |
Config validation and fix above are now part of v5.3.0. I also created an issue in the underlying Centrifuge library to return an error during publish, this is not very relevant to Centrifugo though. |
Describe the bug. A clear and concise description of what the bug is.
Seeing this error while publishing using REST API.
The error does not appear all the time.
Centrifugo config:
Using a single node Redis cluster
Versions
Centrifugo version is 5.1.1
Client library used is centrifuge- of version
Operating system is <???>
Steps to Reproduce How can the bug be triggered?
publish a message using REST API with a API token
Expected behavior What output or behaviour were you expecting instead?
...
Code Snippets A minimum viable code snippet can be useful.
The text was updated successfully, but these errors were encountered: