-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Negative maxlen for XAddOptions is ignored #2982
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
Comments
We have a similar case with |
@mp911de, |
Sounds good, feel free to address both concerns within a single pull request. |
jinkshower
added a commit
to jinkshower/spring-data-redis
that referenced
this issue
Sep 8, 2024
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue refers to a comment in #2936
As we now can use XAddOptions in streamOperations,
This executes without throwing an error or warning the client. Instead, the result is that the maxlen option is not applied.
IMO, this is because the XAddOptions hasMaxlen() method gets called before every time XAddOptions is used, and it checks maxlen > 0, which results in ignoring negative values for maxlen.
The text was updated successfully, but these errors were encountered: