[Enhancement] Add configurable commit triggers based on data volume/count in Kafka Connect
Proposed Change
Problem Description
Currently, Iceberg Kafka Connect only commits based on a fixed time interval (300,000ms by default). This can lead to:
- Delayed commits when data volume is low
- Memory pressure when data volume is high
- 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
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
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.
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'