Anurag-S1ngh opened a new pull request, #19256: URL: https://github.com/apache/iceberg/pull/19256
## Summary - A Kafka Connect sink task that holds partitions but receives no records never started its commit worker. The worker is also the task's side of the commit protocol and reports every assigned partition on a commit request, so each commit round stalled until the timeout and fell back to a partial commit. - `CommitterImpl.save` now starts the worker whenever the task holds an assignment, then only forwards records when there are any. ## Changes - `CommitterImpl.save`: start the worker for an initialized task with a non-empty assignment, even when the record batch is empty. - Add `TestCommitterImplIdleWorker`, covering an idle assigned task (worker starts) and a task without an assignment (worker stays stopped). ## Testing - `./gradlew ":iceberg-kafka-connect:iceberg-kafka-connect:test" --tests "org.apache.iceberg.connect.channel.TestCommitterImpl" --tests "org.apache.iceberg.connect.channel.TestCommitterImplIdleWorker"` passes. - The idle task test fails without the change. - `spotlessApply` run for the module. Closes #17811 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
