Soumo-git-hub opened a new pull request, #19324: URL: https://github.com/apache/iceberg/pull/19324
Kafka Connect currently lets `TransactionAbortableException` escape from transactional channel operations after aborting the failed transaction, which can leave the sink task requiring a restart even though the producer can continue. This change retries the transaction inside `Channel`, reusing the already prepared records and offsets while preserving existing fatal and fencing behavior. Retries are bounded to three total attempts with no deliberate backoff, keeping recovery local and short on the Connect processing path while avoiding an outer task-level retry that would repeat higher-level work. Closes #19131 Test plan: - Verify abortable failures retry successfully for both event sends and consumer-offset commits. - Verify retries are bounded, non-abortable failures are not retried, abort failure stops recovery, and failed attempts do not advance committed offsets. - Run the full Kafka Connect module: 172 tests, 0 failures/errors/skips; `spotlessCheck` and `git diff --check` pass. --- **AI Disclosure** - Model: GPT-6 Luna - Platform/Tool: OpenAI Codex - Human Oversight: fully reviewed - Prompt Summary: Generated the `Channel` transaction-retry changes and `TestChannel` regression coverage for `TransactionAbortableException`, with the implementation scope and validation directed by the contributor. -- 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]
