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

   We weren't enabling discoverBrokerVersions to check the supported versions 
in the AddPartitionsToTxnManager. This means that any verification request (or 
any AddPartitionsToTxnRequest version) from a newer broker would fail when 
sending to an older broker. 
   
   The bulk of this change is adding additional transactions system tests for 
old versions. 
   One test upgrades the cluster completely. This didn't catch the issue but 
could be useful.
   
   The other test forces a new broker to send a verification request to an 
older one. Without the discoverBrokerVersions change, all tests between mixed 
brokers failed. (We introduced a new request version in 3.8 -- which is a 
separate version from the one that caused the bug for 3.5 -> 3.6) With the 
addition, the tests all passed. 
   
   I also manually ran a test for 3.5 -> 3.6 since the issue there was slightly 
different and was caused by the unstableLatestVersion flag being enabled. The 
effect is the same and the fix also fixes this issue. 👍 
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to