Hello everyone! Has anyone else experienced missin...
# replication-troubleshooting
j
Hello everyone! Has anyone else experienced missing data in their steams? We are moving data from MSSQL to Redshift, but we are constantly missing records, despite records emitted and records committed matching and not having any errors in our logs. I came across this github issue https://github.com/airbytehq/airbyte/issues/53614 and switched from abctl to kubernetes, but we are still having the same issue
k
Yes, missing data during syncs—especially when moving large datasets or using incremental syncs with CDC (Change Data Capture)—has been reported by several Airbyte users, not just with MySQL but also with MSSQL and other sources. The issue you referenced ([source-mysql] Sync Failure: Missing Rows When Syncing Large MySQL Table to Snowflake) describes similar symptoms: missing rows, no errors in logs, and matching records emitted/committed counts, particularly when using abctl. Some users found that switching from abctl to Docker or Kubernetes improved stability, but others still experienced data loss even after switching to Kubernetes, especially with large datasets or high-frequency changes during sync windows. For MSSQL specifically, there are open issues where CDC commit logs are not fetched or ordered properly, leading to incorrect or missing data in the destination. One user noted that Airbyte may not be using all CDC metadata (like __$command_id) to ensure correct ordering, which can result in the wrong row being kept in the destination, especially if multiple changes happen in quick succession. This can cause silent data loss even when the sync appears successful and logs show no errors. The problem is exacerbated when records are inserted or updated during the sync window, as these changes may not be picked up in the next sync, leading to permanent data loss unless manually backfilled. This is a known pain point and has been reported by multiple users, but there is no confirmed universal fix yet in the knowledge sources provided. Users have requested guidance or a workaround from the Airbyte team, but no definitive solution has been documented so far for this scenario [Source MSSQL: CDC commit logs are not fetched properly](https://github.com/airbytehq/airbyte/issues/25237), [source-mysql] Sync Failure: Missing Rows When Syncing Large MySQL Table to Snowflake](https://github.com/airbytehq/airbyte/issues/53614). In summary, you are not alone in experiencing this issue, and it appears to be a known challenge with Airbyte's handling of CDC and incremental syncs for some connectors. If you have already switched to Kubernetes and are still seeing missing records, it may be related to how Airbyte processes CDC logs or handles sync windows, rather than the deployment method. There is currently no documented, universally effective workaround in the knowledge sources, so continued monitoring of Airbyte's GitHub issues and possibly opening a new issue with detailed logs and configuration may help escalate the problem.
j
@kapa.ai the plot thickens... I changes the destination to snowflake and all records are there, which leads me to believe it is a bug with the redshift connector
k
A message from kapa.ai
Your observation that all records appear in Snowflake but not in Redshift does suggest the issue may be related to the Redshift destination connector rather than the source or the sync process itself. There are several reports and discussions in the knowledge sources about data inconsistencies, missing records, or silent failures specifically with the Redshift destination: - Some users have experienced silent failures or hanging syncs with the Redshift connector, where the process appears successful (records emitted/committed match, no errors in logs), but data is missing or not visible in the expected tables. In some cases, data was only found in the _airbyte_raw_* tables, not in the final tables, which can be confusing if you’re expecting normalized data to appear elsewhere. This was resolved for some by checking the raw tables, but not always for all users or scenarios [Source Postgres, Destination Redshift : No table / data found after a successful sync](https://discuss.airbyte.io/t/843) [Redshift Destination Hanging](https://discuss.airbyte.io/t/4574). - There are also known issues with Redshift’s handling of large records, the SUPER data type, and transaction handling. For example, if a record exceeds Redshift’s size limits, it may be nulled or dropped, and this is only sometimes visible in logs. Additionally, bugs in transaction handling (especially with append+deduped mode) can lead to data being inserted and then deleted or not committed as expected, resulting in missing records even though the sync appears successful [[destination-snowflake] incorrect transaction handling leads to missing data](https://github.com/airbytehq/airbyte/issues/46936) [Redshift connector-specific features & highlights](https://docs.airbyte.com/integrations/destinations/redshift#connector-specific-features--highlights). - Some users have found that splitting large syncs into smaller batches or connections can help, as syncing too many tables or very large tables at once can cause issues with Redshift that do not occur with Snowflake [Data not showing in snowflake from redshift](https://discuss.airbyte.io/t/2119). Given that your data appears in Snowflake but not Redshift, it is very likely you are encountering a Redshift-specific connector bug or limitation. You may want to: - Check if your data is present in the _airbyte_raw_* tables in Redshift. - Review your sync mode (append, overwrite, append+deduped) and see if changing it affects the outcome. - Review the size and structure of your records for compatibility with Redshift’s limitations. - Consider opening a detailed issue on GitHub with your findings, as this could help the Airbyte team identify and resolve Redshift-specific bugs. If you need to proceed urgently, using Snowflake as a destination (as you’ve tested) may be a viable workaround until the Redshift connector issue is resolved. If you need more specific troubleshooting steps, please provide details about your sync mode, table structure, and any relevant logs.
j
I think I figured out the issue, which I reported in github. I am sharing it here in case anyone else runs into this problem.