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

cdc: also run SyncRecords in error group #1294

Merged
merged 1 commit into from
Feb 14, 2024
Merged

cdc: also run SyncRecords in error group #1294

merged 1 commit into from
Feb 14, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Feb 14, 2024

Main thread waits on errGroup.Wait sooner,
so that if an error happens it'll be the original error,
instead of reporting context canceled from SyncRecords after PullRecords error

Also causes context cancelation to be two way:
if SyncRecords fails, PullRecords will now be canceled

Main thread waits on errGroup.Wait sooner,
so that if an error happens it'll be the original error,
instead of reporting context canceled from SyncRecords after PullRecords error

Also causes context cancelation to be two way:
if SyncRecords fails, PullRecords will now be canceled
@serprex serprex merged commit 5cac242 into main Feb 14, 2024
7 checks passed
@serprex serprex deleted the more-groups branch February 14, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants