You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
With concurrency_limit above 1, a late cumulative ack can checkpoint past an unprocessed event #44
With concurrency_limit above 1, a late cumulative ack can cover an event nobody processed. After a lower-positioned subscriber dies and a replacement joins, the survivor's delayed ack for a batch sent before a disconnect can cover an event reassigned to it that still sits unprocessed in its mailbox, and the checkpoint moves past it; a restart in that window skips it. Same at f1c5d29 (3 of 3 each). Very low.
Fixed by #72. An ack sent for a delivery made before a disconnect now covers only that delivery, so it can no longer checkpoint past an event that was reassigned to the same subscriber afterwards and is still unprocessed.
Verified with test/subscriptions/subscription_locking_test.exs ("acknowledgement sent before a disconnect does not cover events redelivered after the reconnect") and test/subscriptions/subscriber_test.exs: they fail against the code before #72 and pass on main.
Activity
yordis commentedon Oct 27, 2026
Fixed by #72. An ack sent for a delivery made before a disconnect now covers only that delivery, so it can no longer checkpoint past an event that was reassigned to the same subscriber afterwards and is still unprocessed.
Verified with
test/subscriptions/subscription_locking_test.exs("acknowledgement sent before a disconnect does not cover events redelivered after the reconnect") andtest/subscriptions/subscriber_test.exs: they fail against the code before #72 and pass on main.