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

   When cleaning a topic with transactional data, if the keys used in the user 
data happen to conflict with the keys in the transaction markers, it is 
possible for the markers to get removed before the corresponding data from the 
transaction is removed. This results in a hanging transaction or the loss of 
the transaction's atomicity since it would effectively get bundled into the. 
Currently control records are excluded when building the offset map, but not 
when doing the cleaning. This patch fixes the problem by checking for control 
batches in the `shouldRetainRecord` callback.
   
   ### 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