Ishan Anilbhai Koradiya
11/15/2025, 5:00 AMkapa.ai
11/15/2025, 5:00 AMFailedRecordIteratorException with a Debezium error related to change streams in MongoDB source connector v1.5.14. Based on the knowledge sources, this type of error is typically related to issues with MongoDB's Change Data Capture (CDC) functionality. The error you're experiencing is similar to several documented issues with the MongoDB connector. Here are the most common causes and solutions: ## Common Causes 1. Invalid Resume Token / Oplog Issues: The saved offset may no longer be valid because the resume point is no longer in the oplog. This happens when: - The oplog retention period is too short - Syncs run less frequently than the oplog retention period - The time between syncs exceeds what the oplog can retain 2. Replica Set Configuration: For self-managed replica sets, there may be issues with how the replicaSet parameter is handled in the connection string. ## Recommended Solutions According to the [MongoDB troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations): 1. Reset the connection and then take these preventive measures: - Increase the oplog retention period - Increase the oplog size (recommended: at least 24 hours, ideally 1 week of data) - Increase the Airbyte sync frequency 2. Verify your oplog configuration by running the commands outlined in [this MongoDB tutorial](https://www.mongodb.com/docs/manual/tutorial/troubleshoot-replica-sets/#check-the-size-of-the-oplog) 3. Check your cluster type: Ensure you're using a [replica set cluster](https://www.mongodb.com/docs/manual/replication/), as this is required for CDC functionality 4. Consider upgrading: You're using v1.5.14, and there have been several fixes in later versions. The [changelog](https://docs.airbyte.com/integrations/sources/mongodb-v2#changelog) shows improvements in versions 1.5.15 and beyond. If the issue persists after trying these solutions, you may want to check the full error logs for more specific details about which part of the change stream operation is failing.Ishan Anilbhai Koradiya
11/15/2025, 5:05 AMkapa.ai
11/15/2025, 5:05 AMkapa.ai
11/15/2025, 5:05 AMIshan Anilbhai Koradiya
11/15/2025, 5:13 AMkapa.ai
11/15/2025, 5:13 AMkapa.ai
11/15/2025, 5:13 AMCommand failed with error 280 (ChangeStreamFatalError): 'PlanExecutor error during aggregation :: caused by :: cannot resume stream; the resume token was not found' - Command failed with error 286 (ChangeStreamHistoryLost): 'Resume of change stream was not possible, as the resume point may no longer be in the oplog' ## Why It Matters As explained in the [troubleshooting guide](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations), when importing a large MongoDB collection for the first time, the import duration might exceed the oplog retention period. Since the oplog is crucial for incremental updates, an invalid resume token will require the MongoDB collection to be re-imported to ensure no source updates were missed. This is why the recommended solutions involve: - Increasing the oplog retention period (ideally to hold at least 24 hours, preferably a week of changes) - Increasing sync frequency so syncs complete before the oplog position expires - Resetting the connection when the resume token becomes invalidIshan Anilbhai Koradiya
11/15/2025, 5:25 AMkapa.ai
11/15/2025, 5:25 AMkapa.ai
11/15/2025, 5:25 AM