pipeline icon indicating copy to clipboard operation
pipeline copied to clipboard

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

Open wtsergo opened this issue 1 year ago • 0 comments

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 avatar Aug 20 '24 17:08 wtsergo