Open Hugoch opened 1 week ago
Thanks for reporting the issue @Hugoch .
@airbytehq/dbsources can someone take a look into this issue?
Hi @Hugoch thanks for reaching out. Do you see any schema change happening before these failures?
Would you be able to share a successive logs from the an initial sync that finished successfully and an incremental sync the failed afterwards?
@rodireich @xiaohansong
This issue could be related:
https://github.com/airbytehq/airbyte/issues/48435
This is a similar issue, but it hasn’t been resolved yet.
I’m also encountering a similar issue with the error “saved offset is not valid” when syncing data every 30 minutes. I checked the replication info and found that the log length from start to end is approximately 72 hours.
I increased the sync frequency to every 6 minutes, but I’m still encountering this error.
@ngocquang2797 It seems that your actual Oplog size is bigger than your configured Oplog size. This may be due to your majority commit point being far in the past, so you probably have a large replication lag? I am not sure it is related to the issue, but it might be worth investigating.
Connector Name
source-mongodb
Connector Version
1.5.12
What step the error happened?
During the sync
Relevant information
After a successful initial sync, incremental replication randomly fails after 1-10 successful ones with a
Saved offset is not valid. Please reset the connection, and then increase oplog retention and/or increase sync frequency to prevent this from happening in the future
.I manually checked the resume token from the logs which is invalid, but manually testing a resume token from a previous successful sync works (which seems to confirm that oplog is not truncated).
Reducing the replication frequency to 5 min (with oplog ~4days retention) does not fix.
Some other collections from the same cluster sync without issues.
More info
cc @theyueli
Relevant log output
Contribute