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

fix: resume connectors on network errors #1956

Merged
merged 5 commits into from
Sep 1, 2023

Conversation

abcpro1
Copy link
Contributor

@abcpro1 abcpro1 commented Aug 31, 2023

This PR includes MySQL, Postgres, and Kafka connectors, so far.

Covers three connectors from #1916.

Copy link
Contributor

@chubei chubei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

I left some comments. Let's discuss.

dozer-ingestion/src/connectors/mysql/connection.rs Outdated Show resolved Hide resolved
dozer-ingestion/src/connectors/mysql/connection.rs Outdated Show resolved Hide resolved
dozer-ingestion/src/utils.rs Show resolved Hide resolved
dozer-ingestion/src/utils.rs Show resolved Hide resolved
Resume database queries on network errors.
Select queries with multiple rows resume from the last row received.
CDC continues from its last position.
Similarly to the MySQL connector, select queries resume from the last row received.
The CDC resumes from the position where it was stopped.
@abcpro1 abcpro1 force-pushed the connection-retry branch 4 times, most recently from 4018e3c to af7cc4f Compare September 1, 2023 08:35
Detect network failures, reconnect, and resume.
This is not a complete solution but we should use retry infrastructure provided by the object_store crate.
Copy link
Contributor

@chubei chubei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now. If you find 56d1b76 OK, please resolve the conversations to merge.

@chubei chubei added this pull request to the merge queue Sep 1, 2023
@abcpro1 abcpro1 requested a review from chubei September 1, 2023 16:12
Merged via the queue into getdozer:main with commit 5244a7d Sep 1, 2023
7 checks passed
@chubei chubei deleted the connection-retry branch September 1, 2023 17:13
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