Marta Sakal
07/25/2025, 9:12 AMWARN debezium-mongodbconnector-patients-service-replicator-fetcher-0 i.d.c.m.e.BufferingChangeStreamCursor$EventFetcher(enqueue):285 Unable to acquire buffer lock, buffer queue is likely full
I cannot increase queue size because in code 10000 is maximum value, how do I fix the issue?kapa.ai
07/25/2025, 9:12 AMWARN debezium-mongodbconnector-patients-service-replicator-fetcher-0 i.d.c.m.e.BufferingChangeStreamCursor$EventFetcher(enqueue):285 Unable to acquire buffer lock, buffer queue is likely full indicates that the internal buffer queue for change events is full. As you noted, the queue size is capped at 10,000 and cannot be increased further due to a hardcoded limit in the connector. How to address this issue: - Increase sync frequency: If the buffer fills up, it usually means that the connector cannot process events as quickly as they are being produced. Running syncs more frequently can help reduce the volume of changes that need to be processed in each run, preventing the buffer from overflowing. This is especially important if your MongoDB instance has a high rate of change. - Reduce source database write volume: If possible, reduce the number of writes to the MongoDB source during syncs, so the connector can keep up with the change stream. - Optimize downstream processing: Ensure that the destination and any transformations are not bottlenecks, as slow downstream processing can cause the buffer to fill up. - Check resource allocation: Make sure your Airbyte instance has sufficient CPU and memory resources, as resource constraints can slow down processing and contribute to buffer overflows. These recommendations are consistent with the documented limitations and troubleshooting advice for the MongoDB source connector, which highlights the importance of sync frequency and oplog retention for reliable incremental syncs. If the connector cannot keep up with the change stream, you may encounter issues like buffer overflows or invalid resume tokens, requiring a full re-sync to recover. For more details, see the [MongoDB source troubleshooting guide](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations). If you continue to experience issues, you may need to review your overall sync architecture or consider splitting large collections into smaller ones to reduce the event volume per sync. Note: The knowledge sources do not mention any way to increase the queue size beyond 10,000 or to change this limit via configuration.Marta Sakal
07/25/2025, 9:15 AMkapa.ai
07/25/2025, 9:16 AMkapa.ai
07/25/2025, 9:16 AMMarta Sakal
07/25/2025, 9:24 AMkapa.ai
07/25/2025, 9:24 AMkapa.ai
07/25/2025, 9:25 AMio.debezium.connector.mongodb.events.BufferingChangeStreamCursor$EventFetcher) being invoked during the sync process. This integration allows Airbyte to incrementally capture inserts, updates, and deletes from MongoDB using the OpLog and change streams mechanism [Mongo DB](https://docs.airbyte.com/integrations/sources/mongodb-v2#mongo-db) [Connector Limitations](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations).