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

Wrong queue waiting possition when canceled in the middle of the waiting list #23

Open
wtsergo opened this issue Aug 20, 2024 · 0 comments

Comments

@wtsergo
Copy link

wtsergo commented Aug 20, 2024

Hello,

I believe there is a bug in queue position resolution for the waiting consumers when cancellation happens in the middle of the waiting list.
Attaching script to reproduce the bug.
queue_waiting_position.txt
Expected output is
IT1: 0 => 0 IT3: 1 => 1 IT1: 2 => 2 IT3: 3 => 3
Actual output
IT1: -1 => 0 IT3: 1 => 1 IT1: 2 => 2 IT3: 3 => 3

Also attaching proposed fix
fix-waiting-position.diff.txt

Thanks,
Sergey

@wtsergo wtsergo changed the title Wrong waiting possition when canceled in the middle of the waiting list Wrong queue waiting possition when canceled in the middle of the waiting list Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant