Search before reporting
Read release policy
User environment
master
Issue Description
The KafkaConnectAdapter currently lacks an effective backpressure mechanism to regulate message ingestion and buffering. As a result, it continues consuming records and appending them to the pendingFlushQueue even when downstream processing is saturated or stalled.
At present, batchSize is only used as a flush threshold and does not impose any limit on writing records. This leads to accumulation of records in memory, which can result in OutOfMemoryError (OOM) under sustained load or when the sink is slow/unavailable.
Error messages
Reproducing the issue
Run any sink using KafkaConnectAdapter (e.g., BigQuery sink) and simulate a slow or stalled downstream. Observe unbounded growth of pendingFlushQueue leading to OOM.
Additional information
No response
Are you willing to submit a PR?
Search before reporting
Read release policy
User environment
master
Issue Description
The
KafkaConnectAdaptercurrently lacks an effective backpressure mechanism to regulate message ingestion and buffering. As a result, it continues consuming records and appending them to thependingFlushQueueeven when downstream processing is saturated or stalled.At present,
batchSizeis only used as a flush threshold and does not impose any limit on writing records. This leads to accumulation of records in memory, which can result in OutOfMemoryError (OOM) under sustained load or when the sink is slow/unavailable.Error messages
Reproducing the issue
Run any sink using KafkaConnectAdapter (e.g., BigQuery sink) and simulate a slow or stalled downstream. Observe unbounded growth of
pendingFlushQueueleading to OOM.Additional information
No response
Are you willing to submit a PR?