hachikuji opened a new pull request #9762:
URL: https://github.com/apache/kafka/pull/9762


   I wasn't able to reproduce the failure locally, but it looks like there is a 
race condition with the sending of the records in the first producer. The test 
case assumes that these records have been completed before the call to 
`sendOffsetsToTransaction`, but they very well might not be. It is even 
possible for the writes from the second producer to arrive first which would 
then result in the test failure that we are seeing. The solution is to force 
the send with `flush()`.
   
   ### 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.

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


Reply via email to