Fabian Boerner
11/05/2025, 2:08 PMkapa.ai
11/05/2025, 2:09 PMWARN debezium-mongodbconnector-... Unable to acquire buffer lock, buffer queue is likely full indicates that the internal buffer used by the Debezium MongoDB connector (which Airbyte uses for CDC syncs) is full. This typically happens when the rate of incoming change events from MongoDB exceeds the rate at which Airbyte can process and export them. If this persists, it can lead to sync slowdowns, memory pressure, or even out-of-memory errors. What you can do: 1. Increase Airbyte Resources: Ensure your Airbyte instance has enough CPU and memory. Insufficient resources can slow down processing and cause the buffer to fill up. Users have reported that increasing memory allocation can help with similar issues, especially for high-volume syncs or large collections [Mongodb connector failure](https://discuss.airbyte.io/t/476). 2. Reduce Sync Volume: If possible, reduce the number of changes being synced at once (e.g., by syncing less frequently or filtering out unnecessary collections/fields). 3. Tune Buffer Size (if configurable): While the knowledge sources do not specify a direct way to increase the Debezium buffer size via Airbyte configuration, check your connector settings for any advanced options related to buffer or queue size. 4. Monitor for Out-of-Memory Errors: Persistent buffer full warnings can lead to out-of-memory errors. If you see errors like java.lang.OutOfMemoryError: Java heap space, you definitely need to increase memory allocation for your Airbyte worker or the connector container [destination-mongodb Out of memory error](https://github.com/airbytehq/airbyte/issues/48851). 5. Check for Downstream Bottlenecks: If your destination (e.g., a data warehouse) is slow to accept data, it can back up the pipeline. Ensure the destination can keep up with the incoming data rate. 6. Review Airbyte and Connector Logs: Look for additional errors or warnings that might indicate why processing is slow or why the buffer is filling up. If you continue to experience issues, consider sharing your logs and setup details with the Airbyte community or support for more targeted troubleshooting. Summary: This warning is a sign of backpressure in the sync pipeline. The most common solutions are to increase available resources (especially memory), reduce the volume of data being synced, and ensure your destination can keep up with the data flow. If you see out-of-memory errors, increasing memory is strongly recommended. If you need more detailed troubleshooting steps, you can refer to the [MongoDB v2 Troubleshooting Guide](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations).Fabian Boerner
11/05/2025, 5:53 PMkapa.ai
11/05/2025, 5:53 PMkapa.ai
11/05/2025, 5:54 PMFabian Boerner
11/05/2025, 6:03 PMkapa.ai
11/05/2025, 6:03 PMkapa.ai
11/05/2025, 6:03 PMFabian Boerner
11/05/2025, 7:05 PMkapa.ai
11/05/2025, 7:05 PMkapa.ai
11/05/2025, 7:06 PMUnable to acquire buffer lock, buffer queue is likely full), even after increasing resources. The destination is processing batches, but the source continues to hit buffer pressure, and the cycle repeats. What the knowledge sources indicate: 1. Buffer Full Warnings: This means the rate at which Airbyte is reading from MongoDB (via Debezium) is outpacing the rate at which it can process and write to the destination. Even with more resources, if the destination or the Airbyte pipeline can't keep up, the buffer will fill up and you'll see these warnings. This is a classic backpressure scenario [destination-mongodb Out of memory error](https://github.com/airbytehq/airbyte/issues/48851). 2. Destination Processing: Your destination is processing batches (e.g., 3880 records, 24.99 MB), but the source is still producing data faster than it can be consumed. This can happen if the destination's flush or insert operations are slower than the source's event production. 3. No Direct Buffer Size Tuning: The knowledge sources do not mention a way to directly increase the Debezium buffer size via Airbyte configuration for MongoDB. The main lever is to ensure the destination can keep up, and to allocate sufficient resources to both source and destination containers. 4. Potential Solutions from Knowledge Sources: - Reduce Sync Volume: Sync fewer collections or filter out unnecessary data to reduce the load [destination-mongodb Out of memory error](https://github.com/airbytehq/airbyte/issues/48851). - Check Destination Performance: Ensure the destination (e.g., Postgres) is not a bottleneck. If possible, optimize the destination database for bulk inserts. - Monitor for Out-of-Memory: Persistent buffer full warnings can lead to out-of-memory errors. If you see these, further increase memory or split the sync into smaller jobs. - Split Large Syncs: If you have many collections or a very large collection, consider splitting the sync into multiple smaller connections, each handling a subset of the data [destination-mongodb Out of memory error](https://github.com/airbytehq/airbyte/issues/48851). Summary of next steps: - Reduce the number of collections or the volume of data in each sync. - Optimize the destination database for faster inserts. - If possible, split the sync into smaller jobs. - Continue to monitor memory and CPU usage. - If the problem persists, consider opening an issue with detailed logs and configuration, as this may be a connector or Airbyte performance limitation. The knowledge sources do not provide a silver bullet for this scenario, but these are the recommended approaches based on similar reported issues. If you have already maximized resources and optimized the destination, splitting the workload is often the most effective next step.Fabian Boerner
11/05/2025, 10:33 PMkapa.ai
11/05/2025, 10:33 PMkapa.ai
11/05/2025, 10:34 PMupdated_at timestamp) to fetch only records that have changed since the last sync, rather than using MongoDB's change streams (CDC). To achieve what you described—syncing only data with a specific update date and not using the change stream—you should configure your Airbyte MongoDB connector to use Incremental sync with a cursor field (e.g., updated_at). This approach does not rely on MongoDB's change streams but instead queries the collection for documents where the cursor field is greater than the last synced value. This is the standard incremental sync pattern in Airbyte and is well-documented: > Incremental syncs are usually implemented using a cursor value (like a timestamp) that delineates which data was pulled and which data is new. A very common cursor value is an updated_at timestamp. This cursor means that records whose updated_at value is less than or equal than that cursor value have been synced already, and that the next sync should only export records whose updated_at value is greater than the cursor value [Incremental Syncs](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/incremental-syncs). To use this: - Ensure your MongoDB documents have a top-level date/time field (e.g., updated_at). - Configure the Airbyte source to use this field as the cursor for incremental sync. - The connector will then only fetch records with an updated_at greater than the last synced value, without using the change stream. Note: If you specifically want to avoid CDC/change streams, make sure you are not using the CDC sync mode in the connector configuration, but rather the standard incremental sync mode with a cursor field. If you need to filter for a specific date range, you can set the initial start date in the configuration, and Airbyte will only sync records updated after that date [Incremental sync configuration](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/incremental-sync). In summary: Yes, you can sync only data with a specific update date by using incremental sync with a cursor field, which does not require MongoDB change streams. This is a standard feature in Airbyte and is well-supported by the connector configuration options in the UI and YAML files. If you need more details on how to configure this, let me know!Fabian Boerner
11/05/2025, 10:39 PMkapa.ai
11/05/2025, 10:39 PMkapa.ai
11/05/2025, 10:39 PMFabian Boerner
11/05/2025, 10:46 PMkapa.ai
11/05/2025, 10:46 PMkapa.ai
11/05/2025, 10:46 PMupdated_at) only transmits the latest state of each record since the last sync, which is much more efficient for your scenario: > ...because a query cannot return deleted records, standard incremental replication does not correctly transmit deletions from the source to the destination. Additionally, the records that are transmitted in each sync only represent the state of the source database at the moment the sync is executed – any intermediate changes (such as multiple updates to a single record) will not be correctly captured. Furthermore, because each incremental sync executes queries against the source to detect modifications, it requires the source data to have a suitable cursor field such as updated_at, which is used to keep track of which records have already been replicated. > On the other hand, CDC incremental replication reads a log of the changes that have been made to the source database and transmits these changes to the destination. ...intermediate changes and deletions on the source are correctly transmitted to the destination because they are logged just like any other modification to the source data [Explore Airbyte's Change Data Capture (CDC) synchronization](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication). If your use case does not require capturing every intermediate change or deletion, and you only care about the latest state of each record, standard incremental sync with a cursor field is more performant and efficient. However, the knowledge sources do not provide explicit instructions for disabling CDC in the MongoDB connector, so you may need to check the connector's configuration or consult the Airbyte community for further guidance. Summary: CDC is not optimal for high-frequency updates on a small dataset, as it processes every change event. Standard incremental sync with a cursor field is more efficient for syncing only the latest state of each record, but the knowledge sources do not specify how to disable CDC for MongoDB in Airbyte.Fabian Boerner
11/05/2025, 10:50 PMkapa.ai
11/05/2025, 10:50 PMkapa.ai
11/05/2025, 10:50 PMupdated_at). Instead, it relies on Change Data Capture (CDC) using MongoDB change streams for incremental syncs. This means that every change event, including all intermediate updates, is captured and sent to the destination, which can result in a very large number of records being processed and synced—even if you only have a small number of unique documents that are updated frequently. This limitation is acknowledged in the Airbyte community and documentation. For example, a user in the Airbyte forum described a similar issue and received an official response stating that the first sync is always a full refresh, and there is no way to start with a partial or cursor-based incremental sync for MongoDB. The suggested workaround was to create a view in MongoDB that only includes the data you want to sync, but this does not change the underlying replication method used by the connector [Partial Data Fetching From Source To Destination](https://discuss.airbyte.io/t/3381). So, as of now, **Airbyte does not support standard incremental sync (cursor-based) for MongoDB**—only CDC is available, which is not efficient for your use case where a small number of documents are updated very frequently. If you need more efficient incremental sync for MongoDB, you may need to look for alternative ETL tools or consider building a custom connector. If this is a critical feature for your workflow, you can also submit feedback or a feature request to the Airbyte team.