iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

[Enhancement] Add configurable commit triggers based on data volume/count in Kafka Connect

Open juruoO-o opened this issue 1 year ago • 3 comments

Proposed Change

Problem Description

Currently, Iceberg Kafka Connect only commits based on a fixed time interval (300,000ms by default). This can lead to:

  1. Delayed commits when data volume is low
  2. Memory pressure when data volume is high
  3. Suboptimal performance in varying workload scenarios

Proposed Enhancement

Add additional commit triggers similar to Kafka's approach:

Current Behavior

private static final int COMMIT_INTERVAL_MS_DEFAULT = 300_000; // Only time-based


### Proposal document

_No response_

### Specifications

- [ ] Table
- [ ] View
- [ ] REST
- [ ] Puffin
- [ ] Encryption
- [x] Other

juruoO-o avatar Jul 23 '25 02:07 juruoO-o

Additional handles like we have in spark streaming would be useful:

minOffsetsPerTrigger maxOffsetsPerTrigger maxTriggerDelay

I guess the existing COMMIT_INTERVAL_MS would correspond to maxTriggerDelay

dotjdk avatar Aug 04 '25 07:08 dotjdk

This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.

github-actions[bot] avatar Feb 01 '26 00:02 github-actions[bot]

This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'

github-actions[bot] avatar Feb 16 '26 00:02 github-actions[bot]