- Is this your first time deploying Airbyte?: No
- OS Version / Instance: Ubuntu 18.04.4 LTS
- Memory / Disk: 16GB/ 50GB
- Deployment: Docker
- Airbyte Version: 0.40.3
- Source name/version: Postgres Connector / 1.0.16
- Destination name/version: Snowflake Destination / 0.4.34
- Step: The issue is happening during sync
Description
This ticket comes as a continuation to the (Stack Syncs and Automated Full Resyncs on CDC).
For the same described setup:
Connection Info
We have configured one of our connections using postgres-connector and snowflake-destination. From the source database, we have configured 2 tables both in
CDC replication
Incremental & Deduped History
Daily Sync at 9 AM, manually triggered through API (Airflow Operator)
The source database is Aurora Postgres and for the CDC configuration we have followed your setup instructions, which means that we have created
A dedicated read-only user is granted with the relevant privileges
A replication slot using ‘pgoutput’ plugin
A publication slot is registered with the 2 tables.
Furthermore, those 2 configured tables are updated in batch operations, which means that for many days there are zero changes, but then due to a scheduled operation process, thousands of rows are affected (inserts/updates/deletes).
we are facing a new problem, similar with those described in the previous ticket, but different on the behavior and debugging.
After checking the connector on 11/11/2022
, we saw that the last sync that brought some changes was on 01/11/2022
. After checking both tables we identified that:
- Table1 (with the highest volume) was synced correctly since the last change was applied on
31/10/2022
. - Table2 (with the lowest volume) was not synced since 18/10/2022. The last update was on
04/11/2022
. It is important to state that this table is populated 2-3 times at a maximum every month and the last syncs were:
2.1 4/11/2022
2.2 18/10/2022
2.3 3/10/2022
2.4 19/9/2022
This means that we are sure that until 31/10/2022
the connection was working correctly. After that date, we lost 1 batch sync for Table2 on 4/11/2022
.
From the logs, it’s not clear what is the problem since the syncs are completed successfully. The only thing that we have been identified is that as the days goes by, more and more logs such us
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D49160F0} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{0/0} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D49168C0} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D4916A58} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D4916BF0} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D4916D88} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D4916F28} identified as already processed
2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D49170C8} identified as already processed
are coming, which makes us think that again there may be a problem with identifying the correct LSN pointer to restart the process for each sync.
Logs :
*Some of the relevant 2022-11-11 06:00:45 e[44msourcee[0m > Streaming requested from LSN LSN{FC/D8881A90}, received LSN LSN{FC/D4916BF0} identified as already processed
logs have been removed from filed due to >8MB size limitation.`
partial_table_sync__latest_successful_run_table2_19:10:2022.txt.txt (176.9 KB)
partial_table_sync__latest_successful_run_table1_01:11:2022.txt (8.0 MB)
partial_table_sync__latest_problematic_run_11:11:2022.txt (7.6 MB)
partial_table_sync__latest_successful_run_table1_01:11:2022.txt (8.0 MB)
h