<@U04S8PLJWMT> 2025-08-02 14:26:47 destination INF...
# ask-ai
g
@kapa.ai 2025-08-02 142647 destination INFO pool-4-thread-5 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):170 Flush Worker (4eebb) -- Worker finished flushing. Current queue size: 0 2025-08-02 142716 destination INFO pool-3-thread-1 i.a.c.i.d.a.b.BufferManager(printQueueInfo):94 [ASYNC QUEUE INFO] Global: max: 7.32 GB, allocated: 9.99 MB (9.990240097045898 MB), %% used: 0.001332032012939453 | Queue
callback_payloads
, num records: 0, num bytes: 0 bytes, allocated bytes: 0 bytes | State Manager memory usage: Allocated: 9 MB, Used: -10234 bytes, percentage Used -9.769437830615857E-4 2025-08-02 142716 destination INFO pool-6-thread-1 i.a.c.i.d.a.FlushWorkers(printWorkerInfo):127 [ASYNC WORKER INFO] Pool queue size: 0, Active threads: 0 2025-08-02 142816 destination INFO pool-3-thread-1 i.a.c.i.d.a.b.BufferManager(printQueueInfo):94 [ASYNC QUEUE INFO] Global: max: 7.32 GB, allocated: 9.99 MB (9.990240097045898 MB), %% used: 0.001332032012939453 | Queue
callback_payloads
, num records: 0, num bytes: 0 bytes, allocated bytes: 0 bytes | State Manager memory usage: Allocated: 9 MB, Used: -10234 bytes, percentage Used -9.769437830615857E-4 2025-08-02 142816 destination INFO pool-6-thread-1 i.a.c.i.d.a.FlushWorkers(printWorkerInfo):127 [ASYNC WORKER INFO] Pool queue size: 0, Active threads: 0 2025-08-02 142916 destination INFO pool-3-thread-1 i.a.c.i.d.a.b.BufferManager(printQueueInfo):94 [ASYNC QUEUE INFO] Global: max: 7.32 GB, allocated: 9.99 MB (9.990240097045898 MB), %% used: 0.001332032012939453 | Queue
callback_payloads
, num records: 0, num bytes: 0 bytes, allocated bytes: 0 bytes | State Manager memory usage: Allocated: 9 MB, Used: -10234 bytes, percentage Used -9.769437830615857E-4 2025-08-02 142916 destination INFO pool-6-thread-1 i.a.c.i.d.a.FlushWorkers(printWorkerInfo):127 [ASYNC WORKER INFO] Pool queue size: 0, Active threads: 0 2025-08-02 143016 destination INFO pool-3-thread-1 i.a.c.i.d.a.b.BufferManager(printQueueInfo):94 [ASYNC QUEUE INFO] Global: max: 7.32 GB, allocated: 9.99 MB (9.990240097045898 MB), %% used: 0.001332032012939453 | Queue
callback_payloads
, num records: 0, num bytes: 0 bytes, allocated bytes: 0 bytes | State Manager memory usage: Allocated: 9 MB, Used: -10234 bytes, percentage Used -9.769437830615857E-4 2025-08-02 143016 destination INFO pool-6-thread-1 i.a.c.i.d.a.FlushWorkers(printWorkerInfo):127 [ASYNC WORKER INFO] Pool queue size: 0, Active threads: 0 2025-08-02 143116 destination INFO pool-3-thread-1 i.a.c.i.d.a.b.BufferManager(printQueueInfo):94 [ASYNC QUEUE INFO] Global: max: 7.32 GB, allocated: 9.99 MB (9.990240097045898 MB), %% used: 0.001332032012939453 | Queue
callback_payloads
, num records: 0, num bytes: 0 bytes, allocated bytes: 0 bytes | State Manager memory usage: Allocated: 9 MB, Used: -10234 bytes, percentage Used -9.769437830615857E-4 2025-08-02 143116 destination INFO pool-6-thread-1 i.a.c.i.d.a.FlushWorkers(printWorkerInfo):127 [ASYNC WORKER INFO] Pool queue size: 0, Active threads: 0 2025-08-02 143147 destination INFO pool-5-thread-1 i.a.c.i.d.a.DetectStreamToFlush(getNextStreamToFlush):109 flushing: trigger info: null - callback_payloads, time trigger: true , size trigger: false current threshold b: 2.93 GB, queue size b: 0 bytes, penalty b: 0 bytes, after penalty b: 0 bytes 2025-08-02 143147 destination INFO pool-4-thread-1 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):135 Flush Worker (be30f) -- Worker picked up work. 2025-08-02 143147 destination INFO pool-4-thread-1 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):141 Flush Worker (be30f) -- Attempting to read from queue namespace: null, stream: callback_payloads. 2025-08-02 143147 destination INFO pool-4-thread-1 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 0 bytes.. 2025-08-02 143147 destination INFO pool-4-thread-1 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):159 Flush Worker (be30f) -- Batch contains: 0 records, 0 bytes bytes. 2025-08-02 143147 destination INFO pool-4-thread-1 i.a.i.d.b.o.BigQueryDirectLoadingStorageOperation(writeToStage):66 Writing data to table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=airbyte_internal, tableId=uat_dw_raw__stream_callback_payloads}} with schema Schema{fields=[Field{name=_airbyte_raw_id, type=STRING, mode=null, description=null, policyTags=null, maxLength=null, scale=null, precision=null, defaultValueExpression=null, collation=null, rangeElementType=null}, Field{name=_airbyte_extracted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null, maxLength=null, scale=null, precision=null, defaultValueExpression=null, collation=null, rangeElementType=null}, Field{name=_airbyte_loaded_at, type=TIMESTAMP, mode=null, description=null, policyTags=null, maxLength=null, scale=null, precision=null, defaultValueExpression=null, collation=null, rangeElementType=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null, maxLength=null, scale=null, precision=null, defaultValueExpression=null, collation=null, rangeElementType=null}, Field{name=_airbyte_meta, type=STRING, mode=null, description=null, policyTags=null, maxLength=null, scale=null, precision=null, defaultValueExpression=null, collation=null, rangeElementType=null}, Field{name=_airbyte_generation_id, type=INTEGER, mode=null, description=null, policyTags=null, maxLength=null, scale=null, precision=null, defaultValueExpression=null, collation=null, rangeElementType=null}]} 2025-08-02 143148 destination INFO pool-4-thread-1 i.a.i.d.b.o.BigQueryDirectLoadingStorageOperation(writeToStage):79 Writing to channel completed for GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=airbyte_internal, tableId=uat_dw_raw__stream_callback_payloads}} 2025-08-02 143148 destination WARN pool-4-thread-1 i.a.i.d.b.BigQueryUtils(waitForJobFinish):292 Received null value for Job, nothing to waitFor 2025-08-02 143148 destination INFO pool-4-thread-1 i.a.c.i.d.a.s.GlobalAsyncStateManager(flushStates):153 Flushing states 2025-08-02 143148 destination INFO pool-4-thread-1 i.a.c.i.d.a.s.GlobalAsyncStateManager(flushStates):207 Flushing states complete 2025-08-02 143148 destination INFO pool-4-thread-1 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 0 bytes.. 2025-08-02 143148 destination INFO pool-4-thread-1 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 0 bytes.. 2025-08-02 143148 destination INFO pool-4-thread-1 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):170 Flush Worker (be30f) -- Worker finished flushing. Current queue size: 0 This is running in loop and not finishing the sync
k
Based on the logs and the patterns described in your question, your Airbyte sync is stuck in a loop where the destination (BigQuery) repeatedly reports that there are zero records to process, and the queue remains empty. This is similar to the issue reported in [this GitHub issue](https://github.com/airbytehq/airbyte/issues/58082), where the sync hangs indefinitely, with log lines showing: - The buffer and queue are empty (
num records: 0, num bytes: 0 bytes
). - The flush worker is triggered by a time-based event, but each batch contains zero records. - The BigQuery write operation completes, but there is "nothing to wait for" because no job is actually submitted (since there are no records). - The process repeats indefinitely, never reaching a terminal state unless manually cancelled. This behavior is a known issue and has been observed in other cases as well, such as [this similar issue](https://github.com/airbytehq/airbyte/issues/42109), where negative memory allocation and infinite sync loops were reported. Key points from the logs: - The queue is always empty, so nothing is written to BigQuery. - The state manager and buffer manager show negative or zero memory usage, which is abnormal. - The sync never finishes on its own, requiring manual cancellation. Possible causes (based on the knowledge sources): - There may be a bug in the destination connector (BigQuery) or in the way Airbyte manages state and memory for empty or near-empty streams. - The source may not be producing any records, or there is a disconnect between the source and destination about the end-of-stream signal. - The system is stuck in a loop due to improper handling of empty batches or state flushing. What you can do: - Check if you are using a connector version that is affected by this bug and consider upgrading if a newer version is available. - Review the source configuration to ensure it is producing data as expected. - If the problem persists, you may need to follow or contribute to the ongoing discussion in the referenced GitHub issues, as a fix may require changes in the Airbyte codebase. Summary: Your issue matches a known Airbyte bug where the sync hangs in an infinite loop with empty batches and never completes, even though there is nothing left to process. This is not something you can resolve with configuration alone; it likely requires a fix from the Airbyte development team. You can track progress and add your details to the open issue for better visibility and support from the maintainers [here](https://github.com/airbytehq/airbyte/issues/58082).