Benjamin Edwards
12/18/2025, 11:10 AMMissingTableMapEventException: No TableMapEventData has been found for table id:100
eventType=UPDATE_ROWS
nextPosition=5606243
timestamp=2025-12-18 00:30:00 UTC
We’ve investigated the binlog and confirmed:
• table id 100 = mubi.film_group_availabilities
• A valid TABLE_MAP exists immediately before the UPDATE_ROWS
• The failure occurs because Debezium resumes mid logical event group, missing the TABLE_MAP
Refreshing the stream or removing the table does not change the behaviour — the connector always resumes from the same binlog position.
Could you please confirm the recommended way (in Airbyte OSS) to reset or clear the persisted Debezium CDC state / cursor for a connection, so that the source restarts from a valid binlog boundary?
We want to be sure we’re using the correct mechanism (UI vs API vs internal DB) and not risking unintended data loss.kapa.ai
12/18/2025, 11:11 AMTABLE_MAP), which triggers MissingTableMapEventException. The MySQL connector issue you referenced shows the same root cause: Debezium starts reading “within the logical event group (e.g. from WRITE_ROWS and not preceding TABLE_MAP)”. [[MySQL CDC issue](https://github.com/airbytehq/airbyte/issues/51607)] From the Airbyte side, the part you can control is the connection state (which holds the CDC cursor) and, if needed, a Clear of the destination data. ### 1. Safest, supported way in OSS: Clear + resync Airbyte’s “Clear” operation wipes the destination tables for a connection (or a single stream) but does not touch your source. After a Clear, the next sync re‑backfills from the beginning according to the source’s replication method. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] UI steps (OSS): 1. Go to Connections → select the problematic connection. 2. To reset all streams: - Open the Settings tab → click Clear data → confirm. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] 3. To reset only the failing table: - On the Status (connection details) page, find the stream mubi.film_group_availabilities. - Click the three dots (⋯) next to the stream → Clear data → confirm. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] 4. After the Clear finishes successfully, trigger a new sync; Airbyte will re‑backfill that stream and rebuild CDC state from a clean point. Impact: - Destination rows for the cleared stream(s) will be deleted; tables remain but are emptied. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] - If your source doesn’t retain full history in binlog or tables, this can result in data loss (i.e., you may not be able to reconstruct the full past). [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] ### 2. Editing the CDC cursor / state directly (advanced) Airbyte lets you manually edit the connection state, which contains the CDC cursor (e.g., last binlog filename/position). This can force Debezium to resume from an earlier, valid binlog position without doing a full Clear, but must be done very carefully. [[Modifying state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state)] UI steps: 1. Go to Connections → select the connection. 2. Open the Settings tab. 3. Click the Advanced dropdown. 4. In Connection State, click into the JSON to edit it, then click Update state to save. [[Modifying state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state)] Docs explicitly warn: > Updates to connection state should be handled with extreme care. Updates may break your syncs, requiring a full historical sync of your data to fix. [[Modifying state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state)] In your case, you would: - Identify a safe earlier binlog point (before the problematic UPDATE_ROWS / TABLE_MAP pair) in mubi.film_group_availabilities. - Edit the corresponding state fields (typically the binlog file and position) back to that point. - Run the sync and verify that Debezium now resumes from a correct boundary. Risks: - If you move the cursor backward, any changes between the old state and the new state may be emitted again (duplicate changes). - If the cursor is set incorrectly, the connector may fail or require a full Clear + resync to recover. [[Modifying state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state)] ### 3. When to prefer which - If you can tolerate a full re‑backfill of the affected stream(s) and your source retains full history: → Use Clear data for that stream or the whole connection, then resync. This is the most straightforward and supported recovery path in OSS. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] - If you must avoid a full re‑backfill and understand the binlog positions well: → Carefully edit the connection state JSON to move the CDC cursor back to a known‑good binlog boundary, then sync. [[Modifying state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state)] Beyond these two mechanisms (Clear + state edit), the knowledge sources do not describe any other recommended way (such as directly modifying Airbyte’s internal DB) to reset Debezium CDC state. For anything more invasive than the UI/API mechanisms above, the docs advise doing it only under direct Airbyte guidance. [[Modifying state](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-connection-state)]Benjamin Edwards
12/18/2025, 11:13 AMBenjamin Edwards
12/18/2025, 11:15 AMkapa.ai
12/18/2025, 11:15 AMkapa.ai
12/18/2025, 11:15 AMBenjamin Edwards
12/18/2025, 11:32 AMsourceStats must be set with recordCount for state message id=1
@kapa.aikapa.ai
12/18/2025, 11:32 AMkapa.ai
12/18/2025, 11:32 AMsourceStats must be set with recordCount for state message id=1 so I can’t give a documented, connector‑specific fix for this issue. What is documented is: - You can clear a single stream via the three‑dot menu on the connection status page → Clear data, and then re‑sync to reload that stream. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] - A clear can complete as **successful, failed, or cancelled**; if clearing data fails, the docs recommend manually dropping the affected tables in the destination so Airbyte can continue syncing accurately. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] Given that: 1. The docs do not describe this sourceStats error or how to resolve it. 2. The only documented recovery step for a failed clear is to manually drop the destination tables/files for that stream and then run a sync again. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] So, based on the available documentation, the only supported next step I can point you to is: - Manually drop the destination table(s) for the failing stream. - Then trigger a normal sync of the connection so the stream is recreated and backfilled. [[Clearing data](https://docs.airbyte.com/platform/operator-guides/clear)] For the sourceStats error itself, the knowledge sources do not contain enough information to explain or fix it; you may need to open an issue or support ticket with your logs and connector versions.