cadonna opened a new pull request, #16222:
URL: https://github.com/apache/kafka/pull/16222

   A task does not know anything about a produce error thrown by a different 
task. That might lead to a InvalidTxnStateException when a task attempts to do 
a transactional operation on a producer that failed due to a different task.
   
   This commit stores the produce exception in the streams producer on 
completion of a send instead of the record collector since the record collector 
is on task level whereas the stream producer is on stream thread level. Since 
all tasks use the same streams producer the error should be correctly 
propagated across tasks of the same stream thread.
   
   For EOS alpha, this commit does not change anything because each task uses 
its own producer. The send error is still on task level but so is also the 
transaction.
   
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to