Closed jinkshower closed 2 months ago
We have a similar case with XPendingOptions
while StreamReadOptions
perform assertions on count
.
@mp911de,
I’d like to continue and finish what I started for this issue. Would you mind if I handle this issue? Also, do you want the PR to cover the XPendingOptions
count
as well?
Sounds good, feel free to address both concerns within a single pull request.
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.