Understand snapshot and offset behaviour in mssql source connector using CDC #40726
Unanswered
ritikanaidu-trakstar
asked this question in
Connector Questions
Replies: 3 comments 5 replies
-
Could you share your Airbyte and connector version? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi @ritikanaidu-trakstar we have an open issue internally where we are investigating this. Are you syncing from the Primary MSSQL specifically? If not can you try to use the source as the primary and see if that is able to resolve the issue? |
Beta Was this translation helpful? Give feedback.
2 replies
-
No. I have resorted to using cursor field via updatedAt colums instead of
cdc. Have tried anything i could think of, except updating the aibyte
version. I am at 0.63, and we realy don't want to upgrade.
Sorry i don't have a solution.
…On Wed, 18 Dec 2024, 21:31 Brian Kasen, ***@***.***> wrote:
@t-willi <https://github.com/t-willi> - any word on if your attempted
changes resolved the issue?
—
Reply to this email directly, view it on GitHub
<#40726 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYNZ67ZQTPLKBHZ5ZEHCM5D2GHLQVAVCNFSM6AAAAABKKXSFDWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRRGAYTAOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using the Airbyte OSS version to ingest data from MSSQL server to Snowflake using CDC. The retention period is set to 10 days in SQL Server. Every 11th day, the job fails with this error -
To recover this, I have to reset the data and trigger a full refresh so that airbyte can get an initial snapshot again.
Looking at the events building up to this error, the lsn which the log reports missing from server -
0017bf25:0002d9d7:0004
is the lsn from the initial snapshot taken 10 days ago.Logs from 10 days ago, snapshot offset shows that commit_lsn =
0017bf25:0002d9d7:0004
Latest logs where airbyte tries to locate the initial offset on the server, and fails because the lsn has been cleaned up by sql server after the retention period.
My understanding of airbyte and debezium internals is limited. I would like to know if this is normal behaviour that airbyte tries to look for an lsn that will definitely run out its time in due course (retention period). Shouldn't it be looking for the incremental min_lsn on the server? Or should it be taking incremental (or blocking) snapshots periodically to build upon the initial snapshot taken during full refresh..? Appreciate any help in this regard, since this issue has been plaguing us for several weeks now. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions