Based on the knowledge sources, I can explain how Airbyte handles missing binlogs in MySQL CDC replication. When Airbyte detects that a binlog needed for incremental sync has been removed by MySQL, it
triggers a full refresh sync from scratch rather than continuing with the next available binlog. According to the [MySQL troubleshooting documentation](
https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting): > "Under CDC incremental mode, there are still full refresh syncs. Normally under the CDC mode, the MySQL source will first run a full refresh sync to read the snapshot of all the existing data, and all subsequent runs will only be incremental syncs reading from the binlogs. However, occasionally, you may see full refresh syncs after the initial run. When this happens, you will see the following log: > > > Saved offset no longer present on the server, Airbyte is going to trigger a sync from scratch > > The root causes is that the binglogs needed for the incremental sync have been removed by MySQL." So in your scenario where binlogs a, b, c, and d exist, and Airbyte processes a and b in the first sync, if binlog c is deleted before the next sync, Airbyte will detect that the saved offset (binlog c) is no longer present and will trigger a full refresh sync from scratch rather than skipping to binlog d. However, regarding your specific issue where a delete event was not captured, this appears to be a known problem. There are several GitHub issues documenting similar problems with MySQL CDC missing delete events or UPDATE events: - [Missing data during replication of big tables](
https://github.com/airbytehq/airbyte/issues/48717) - [MySQL CDC connector misses UPDATE events](
https://github.com/airbytehq/airbyte/issues/60811) - [MySql CDC to Snowflake sync issue](
https://github.com/airbytehq/airbyte/issues/57542) The knowledge sources suggest that while Airbyte should detect missing binlogs and trigger a full refresh, there may be edge cases or bugs where certain CDC events (including deletes) are not properly captured, particularly with large tables or high-volume changes. To prevent binlog expiration issues, the documentation recommends: - Syncing more frequently - Increasing
binlog_expire_logs_seconds
for standard MySQL installations - For Amazon RDS MySQL, setting
binlog retention hours
to at least 24 hours using
call mysql.rds_set_configuration('binlog retention hours', 24);