-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fix Stream Lag and Add EntriesAdded/EntriesRead #377
base: master
Are you sure you want to change the base?
Conversation
Added them according to redis spec described here https://redis.io/docs/latest/commands/xinfo-groups/
On Thu, Jun 06, 2024 at 06:57:54AM -0700, sancar wrote:
Added them according to redis spec described here
Thanks for the PR!, I'll have a look soon.
|
@alicebob I realized that there are some behavior differences with Redis. entries-read sometimes should be Nil instead of zero. I will update the pr shortly. |
On Thu, Jun 06, 2024 at 11:31:00PM -0700, sancar wrote:
@alicebob I realized that there are some behavior differences with Redis. entries-read sometimes should be Nil instead of zero. I will update the pr shortly.
Thanks! The tests in ./integration might help, they compare mini with real.
|
@alicebob Which one is your preference redis implementation or redis spec for miniredis ? |
Which one is your preference redis implementation or redis spec for miniredis ?
Redis, 100% :)
|
Dear @alicebob, I was really happy with our relationship. It was working out smoothly so far. It's hard for me to say this, but it seems like this is the end of our relationship. It's not about you; it's about Redis. From this point forward, I'll have to fork miniredis and continue alone. I've added integration tests to demonstrate the disparities between Redis's specifications and its actual behavior. I plan to report this to Redis as a bug. If someday the planets align perfectly (Redis fixes the bug, MiniRedis adjusts its tests), then perhaps we can get together. I'm uncertain about what to do with this pull request. Honestly, I'm not keen on trying to understand and implement buggy behavior. Sincerely, |
I'm uncertain about what to do with this pull request. Honestly, I'm not keen on trying to understand and implement buggy behavior.
I consider the documentation to be buggy then :)
I haven't really looked at this issue, which will take me a few days, but
/generally/ the goal of miniredis is "do as Redis does".
|
I think you will consider the doc correct but implementation buggy after spending some time on it. |
I think you will consider the doc correct but implementation buggy after spending some time on it.
That does indeed align with my experience with Redis :)
I will follow this thread to get your ideas as well.
Okay, thanks!
|
Hi, started looking at this today, but figuring out what Redis is up to took long and I couldn't finish that today. Just heads up I haven't forgotten :) |
Hi @alicebob , I think we can wait a bit for these to be clarified. |
Added them according to redis spec described here
https://redis.io/docs/latest/commands/xinfo-groups/