Skip to content

CDC backoff cancel - #4735

Open
squiidz wants to merge 2 commits into
mainfrom
con-504-cdc-backoff-cancel
Open

CDC backoff cancel#4735
squiidz wants to merge 2 commits into
mainfrom
con-504-cdc-backoff-cancel

Conversation

@squiidz

@squiidz squiidz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Review follow-on: ReadChanges backed off with plain time.Sleep, so a
soft stop - Close's graceful path or the poisoned-publisher teardown in
ReadBatch - had to wait out whatever mining or backoff interval was in
flight before the session could report stopped. Both intervals are
user-configurable and can be long, which undercut the teardown's
bounded-wait contract. The sleeps now select on the session context and
return its error, so cancellation cuts them short immediately.
Same exposure as the oracledb mining backoff: ReadChangeTables backed
off with plain time.Sleep, so a soft stop - Close's graceful path or the
poisoned-publisher teardown in ReadBatch - had to wait out the
user-configurable backoff interval before the session could report
stopped. The sleep now selects on the stream context and returns its
error, so cancellation cuts it short immediately.
@squiidz squiidz changed the title Con 504 cdc backoff cancel CDC backoff cancel Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant