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


   Compacted topics can accumulate a large number of empty transaction markers 
as the data from the transactions gets cleaned. For each transaction, there is 
some bookkeeping that leaders and followers much do to keep the transaction 
index up to date. The cost of this overhead can degrade performance when a 
replica needs to catch up if the log has mostly empty or small transactions. 
This patch improves the cost by skipping over empty transactions since these 
will have no effect on the last stable offset and do not need to be reflected 
in the transaction index.
   
   ### 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