docs/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting.md
MongoDB's Change Streams are based on the Replica Set Oplog. This has retention limitations. Syncs that run less frequently than the retention period of the Oplog may encounter issues with missing data.
We recommend adjusting the Oplog size for your MongoDB cluster to ensure it holds at least 24 hours of changes. For optimal results, we suggest expanding it to maintain a week's worth of data. To adjust your Oplog size, see the corresponding tutorials for MongoDB Atlas (fully-managed) and MongoDB shell (self-hosted).
If you are running into an issue similar to "invalid resume token", it may mean you need to:
You can run the commands outlined in this tutorial to verify the current of your Oplog. The expect output is:
configured oplog size: 10.10546875MB
log length start to end: 94400 (26.22hrs)
oplog first event time: Mon Mar 19 2012 13:50:38 GMT-0400 (EDT)
oplog last event time: Wed Oct 03 2012 14:59:10 GMT-0400 (EDT)
now: Wed Oct 03 2012 15:00:21 GMT-0400 (EDT)
When importing a large MongoDB collection for the first time, the import duration might exceed the Oplog retention period. The Oplog is crucial for incremental updates, and an invalid resume token will require the MongoDB collection to be re-imported to ensure no source updates were missed.
MongoDB has a 16MB maximum document size limit for BSON documents. During CDC (Change Data Capture) syncs, change stream events can exceed this limit when documents are large, causing a BSONObjectTooLarge error. This typically occurs during incremental syncs when change stream events include the full document content.
If you encounter this error, you have several options to resolve it:
For more information about MongoDB's document size limits, see the MongoDB documentation on limits.
_id field among the documents in a collection are not supported. All _id values within the collection must be the same data type.false there is no attempt to discover any schema. See more in Schema Enforcement.:::warning
Not all implementations or deployments of a database will be the same. This section lists specific limitations and known issues with the connector based on how or where it is deployed.
:::
Airbyte does not support self-signed SSL certificates for SSH tunnels.
The Airbyte connector does not support custom SSL certificates, which DocumentDB requires.