<@U04S8PLJWMT> getting this error 5-11-21 05:24:0...
# ask-ai
i
@kapa.ai getting this error 2025-11-21 052406 source INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):87 CDC events queue poll(): blocked for PT6.511585925S after 10 previous call(s) which were not logged. 2025-11-21 052406 source INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):184 CDC events queue poll(): returned a change event with "source": {"version":"2.6.2.Final","connector":"mongodb","name":"jansahas","ts_ms":1763671676000,"snapshot":null,"db":"jansahas","sequence":null,"ts_us":1763671676000000,"ts_ns":1763671676000000000,"collection":"supportingDocs","ord":1,"lsid":null,"txnNumber":null,"wallTime":1763671676228}. 2025-11-21 052408 source WARN debezium-mongodbconnector-jansahas-replicator-fetcher-0 i.d.c.m.e.BufferingChangeStreamCursor$EventFetcher(enqueue):285 Unable to acquire buffer lock, buffer queue is likely full 2025-11-21 052409 source INFO pool-2-thread-1 i.a.c.i.d.AirbyteDebeziumHandler$CapacityReportingBlockingQueue(reportQueueUtilization):48 CDC events queue stats: size=0, cap=10000, puts=130, polls=0 2025-11-21 052409 source INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):87 CDC events queue poll(): blocked for PT2.503467921S after 9 previous call(s) which were not logged. 2025-11-21 052409 source INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):140 CDC events queue poll(): returned a heartbeat event: progressing to Timestamp{value=7574912216546149853, seconds=1763671687, inc=1501}. 2025-11-21 052415 replication-orchestrator ERROR Source process exited with non-zero exit code 143 2025-11-21 052415 replication-orchestrator ERROR SourceReader error: 2025-11-21 052415 replication-orchestrator INFO Source queue closed — stopping message processor... 2025-11-21 052415 replication-orchestrator INFO SourceReader finished. 2025-11-21 052415 replication-orchestrator INFO MessageProcessor finished. 2025-11-21 052415 destination INFO main i.a.c.i.d.FlushWorkers(close):188 Closing flush workers -- waiting for all buffers to flush 2025-11-21 052415 replication-orchestrator INFO DestinationWriter finished. 2025-11-21 052415 destination INFO main i.a.c.i.d.FlushWorkers(close):213 REMAINING_BUFFERS_INFO Namespace: dalgo_ingest_mongodb_pci Stream: schemeStatus -- remaining records: 86 Namespace: dalgo_ingest_mongodb_pci Stream: supportingDocs -- remaining records: 52 2025-11-21 052415 destination INFO main i.a.c.i.d.FlushWorkers(close):214 Waiting for all streams to flush. 2025-11-21 052415 replication-orchestrator ERROR DestinationReader error: 2025-11-21 052415 replication-orchestrator INFO DestinationReader finished. 2025-11-21 052415 replication-orchestrator ERROR runJobs failed; recording failure but continuing to finish. 2025-11-21 052415 replication-orchestrator INFO Closing StateCheckSumCountEventHandler 2025-11-21 052415 replication-orchestrator INFO Sync summary: { "status" : "failed", "recordsSynced" : 34893, "bytesSynced" : 63937180, "startTime" : 1763681442139, "endTime" : 1763682855542, "totalStats" : { "bytesCommitted" : 63937180, "bytesEmitted" : 64278845, "destinationStateMessagesEmitted" : 60, "destinationWriteEndTime" : 0, "destinationWriteStartTime" : 1763681443874, "meanSecondsBeforeSourceStateMessageEmitted" : 931, "maxSecondsBeforeSourceStateMessageEmitted" : 4, "maxSecondsBetweenStateMessageEmittedandCommitted" : 302, "meanSecondsBetweenStateMessageEmittedandCommitted" : 289, "recordsEmitted" : 35135, "recordsCommitted" : 34893, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0, "replicationEndTime" : 1763682855540, "replicationStartTime" : 1763681442139, "sourceReadEndTime" : 0, "sourceReadStartTime" : 1763681443891, "sourceStateMessagesEmitted" : 60 }, "streamStats" : [ { "streamName" : "migrants", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 1112681, "bytesEmitted" : 1117967, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 1513, "recordsCommitted" : 1506, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "benefitTypes", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "schemeCategories", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "surveyAnswers", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 36263163, "bytesEmitted" : 36421935, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 3435, "recordsCommitted" : 3420, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "states", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "supportingDocs", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 2540806, "bytesEmitted" : 2564680, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 7392, "recordsCommitted" : 7318, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "documentTypes", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "schemes", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "users", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 2747253, "bytesEmitted" : 2754756, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 1989, "recordsCommitted" : 1984, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "eligibilityCriteria", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "blocks", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "surveys", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "districts", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "roles", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 0, "bytesEmitted" : 0, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 0, "recordsCommitted" : 0, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } }, { "streamName" : "schemeStatus", "streamNamespace" : "jansahas", "stats" : { "bytesCommitted" : 21273277, "bytesEmitted" : 21419507, "estimatedBytes" : 0, "estimatedRecords" : 0, "recordsEmitted" : 20806, "recordsCommitted" : 20665, "recordsFilteredOut" : 0, "bytesFilteredOut" : 0 } } ], "performanceMetrics" : { } } 2025-11-21 052415 replication-orchestrator INFO Failures: [ { "failureOrigin" : "source", "internalMessage" : "Source process exited with non-zero exit code 143", "externalMessage" : "Something went wrong within the source connector", "metadata" : { "attemptNumber" : 0, "jobId" : 58328, "connector_command" : "read" }, "stacktrace" : "io.airbyte.workers.internal.exception.SourceException: Source process exited with non-zero exit code 143\n\tat io.airbyte.container.orchestrator.worker.SourceReader.run(ReplicationTask.kt:206)\n\tat io.airb
k
The logs show two important things: 1. Debezium’s MongoDB change stream buffer is filling up:
Copy code
text WARN ... BufferingChangeStreamCursor$EventFetcher(enqueue):285 Unable to acquire buffer lock, buffer queue is likely full
This means Debezium is producing CDC events faster than Airbyte is draining them. A very similar pattern appears in other MongoDB CDC logs where the Debezium buffer or the Airbyte CDC queue gets saturated and the engine is then shut down cleanly after timeouts. [[Mongo resume token](https://github.com/airbytehq/airbyte/issues/48435); [Mongo OOM symptoms](https://github.com/airbytehq/airbyte/issues/48851)] 2. The source process is then killed by the platform:
Copy code
text Source process exited with non-zero exit code 143
Exit code 143 typically indicates the process was terminated by a SIGTERM (graceful kill) rather than throwing a specific stack trace from the connector itself. In other MongoDB Debezium flows, when no more records are drained or the engine is shut down, Airbyte will stop the embedded engine and the source container, then the orchestrator reports a generic source failure. [[Mongo resume token](https://github.com/airbytehq/airbyte/issues/48435)] From the knowledge sources, there is no explicit, step‑by‑step fix for this exact combination of “buffer queue is likely full” plus exit 143, but the issues suggest it’s related to CDC back‑pressure between Debezium and Airbyte’s queues. [[Mongo OOM symptoms](https://github.com/airbytehq/airbyte/issues/48851)] Given that limitation, here’s what you can do within what’s documented: - Reduce CDC pressure on the source connector Limit the number/size of collections being synced at once or temporarily disable high‑volume streams (e.g.,
schemeStatus
,
supportingDocs
) to see if the error disappears; similar CDC queue saturation has been observed in other MongoDB CDC runs. [[Mongo OOM symptoms](https://github.com/airbytehq/airbyte/issues/48851)] - Check for long‑running syncs with no consumption In other MongoDB CDC logs, if Debezium can’t make progress or no records are drained for a long timeout, Airbyte closes the engine and saves state. [[Mongo resume token](https://github.com/airbytehq/airbyte/issues/48435)] Confirm in your platform logs whether the destination was slow or blocked (e.g., high remaining records in the flush workers at the end of the run, which you already see). - Re‑run the sync and watch queue metrics The
CDC events queue stats
line already shows puts but no polls at one instant. If that persists (many
puts
,
polls=0
), it indicates the reader isn’t draining the queue. If you can share: - Connector name/version (e.g.,
source-mongodb-v2
and its version), - Airbyte version, - Whether this was a full refresh or incremental CDC sync, then we can map it more directly to one of the known MongoDB CDC issues above and determine if it aligns with, for example, the known buffering/queue‑pressure behavior versus a different bug.
i
@kapa.ai what is the batch queue size for Debezium on the mongo connector ?
k
A message from kapa.ai
The MongoDB v2 source exposes only one relevant queue-size setting in its config: - “Size of the queue (Advanced)” — “The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful.” [[MongoDB config params](https://docs.airbyte.com/integrations/sources/mongodb-v2#configuration-parameters); [MongoDB field reference](https://docs.airbyte.com/integrations/sources/mongodb-v2#reference)] Separately, Airbyte’s CDC best‑practices docs refer to a Queue Size parameter with a default of 10,000 CDC records for the internal buffer. [[CDC source config](https://docs.airbyte.com/platform/understanding-airbyte/cdc-best-practices#source-configuration)] However, the knowledge sources do not explicitly state: - The exact default value wired into the MongoDB v2 connector’s Debezium queue, or - Any separate “batch queue size” inside Debezium beyond this exposed
Size of the queue
parameter. So, all we can say from the docs is: - There is a configurable internal queue size for the MongoDB source (
Size of the queue
), - CDC best‑practices recommend a default queue size of 10,000 records for CDC connectors in general, but the docs do not explicitly confirm what Debezium’s internal batch queue size is for this specific Mongo connector implementation.