Repository navigation
fix(subscriptions): back off failed catch-up reads instead of reading on every notification - #125
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
No actionable comments were generated in the recent review. WalkthroughCatch-up reads now retry with exponential delays from 100 ms up to the configured interval. Successful reads and lock loss reset the retry attempt count. Notifications received during a pending retry record the latest event position without triggering an immediate read. ChangesCatch-up retry behavior
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Possibly related issues
Possibly related PRs
Suggested reviewers: Merge Risk:
|
…up read The old test asserted the first retry waits the whole retry interval; the first retry now fires after 100ms and the warning states the delay used. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
The first retry waits 100ms, capped at the retry interval, and the warning states the delay used. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…failures Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ilures The delay is capped at the retry interval. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…succeeds Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ending retry Replaces the test that expected a notification to read at once while a retry is pending. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…notified A notification of new events while a failed read has a retry pending only records the events. The retry reads them, so reads are bounded by the backoff schedule instead of one per notification. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…subscription Covers an event appended during a failed read and an ack-blocked backlog, both with the default-sized retry interval. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…loses its lock Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
9a7d398 to
b81c80a
Compare
|
cursor review |
PR SummaryMedium Risk Overview
Documentation for Reviewed by Cursor Bugbot for commit b81c80a. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit b81c80a. Configure here.
subscription_retry_interval(60 s by default) once the cause was gone (closes Since #116 an ack does not read while a catch-up retry is pending, so after a short failure the subscription waits for the retry (60 s by default) #120, closes An event appended during a failed catch-up read can still wait out the rest of subscription_retry_interval (60 s by default) after the cause goes away #121)subscription_retry_intervalkeeps reads bounded during a long outage while a short one recovers in a few hundred ms