-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fail to sync between Postgres DB in increamental-deduped-history mode #7132
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
Comments
Looks like the source database is dropping the connection after 1.5-2 hours. A solution could be what we've discussed earlier today where source connector checkpoints after every batch and gracefully handles a connection drop allowing the job to finish. |
We could do this by building our select * query in such a way that it sorts the table based on the primary key or the cursor field and then divide it in batches and emit a state message after each batch so that if the sync fails, the next sync starts from where previous one left |
our JDBC connector already fetches records in batches according to |
The |
Hey team! Please add your planning poker estimate with ZenHub @subodh1810 @tuliren @edgao @ryankfu |
The proposed fix is to emit a state message frequently, possibly as part of this code in |
Enviroment
Current Behavior
I want to sync up about 70GB data from source (Postgres DB A) to destination (Postgres DB B).
I configured the sync mode as
increamental-deduced-history
Because I want the destination postgres DB to get updated for every add/modify/delete on source when a syncing happens.
However, it failed after syncing about 300k records when a postgres IO error occurs -> retied 2 more times, but still failed to sync all the data. Here are the logs:
1st-sync-logs-attempt-1.txt
1st-sync-logs-attempt-2.txt
1st-sync-logs-attempt-3.txt
Then I manually triggered the sync again, but still got err:
2nd-sync-10-17-airbyte-logs-attempt-1.txt
Seems I will always fail to sync now.
Expected Behavior
It should finish syncing and I should be able to see all source records in destination.
Logs
Please see complete log from attachment: logs-19-0.txt
logs-19-0 (1).txt
Follow up questions
Thank you very much!
The text was updated successfully, but these errors were encountered: