Skip to content
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

Blocking pops block the connection when the origin already has enough items #1052

Open
prvyk opened this issue Feb 26, 2025 · 0 comments
Open
Assignees

Comments

@prvyk
Copy link
Contributor

prvyk commented Feb 26, 2025

Describe the bug

Example:

ZADD a 1 one
ZADD a 2 two
ZADD b 3 three
BZMPOP 0 2 a b MIN COUNT 2
-> redis-cli never returns.

The order in InitializeObserver() is likely wrong (what if a key is inserted after the loop checking it but before its observer being set up?), but that's not the cause here. The lock is actually freed?

This discussion may be related:
#1046

Steps to reproduce the bug

ZADD a 1 one
ZADD a 2 two
ZADD b 3 three
BZMPOP 0 2 a b MIN COUNT 2

Expected behavior

  1. "a"
      1. "one"
      2. "1"
      1. "two"
      2. "2"

Screenshots

No response

Release version

v1.0.57

IDE

No response

OS version

No response

Additional context

No response

@TalZaccai TalZaccai self-assigned this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants