kafka/tests/kafkatest
Justine Olshan b6e6a2c08f KAFKA-16992: InvalidRequestException: ADD_PARTITIONS_TO_TXN with version 4 which is not enabled when upgrading from kafka (#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. This change should fix this as well. 👍

Reviewers:  David Jacot <djacot@confluent.io>
2024-05-20 11:13:48 -07:00
..
benchmarks KAFKA-15155: Follow PEP 8 best practice in Python to check if a container is empty (#13974) 2023-07-11 11:01:50 +02:00
directory_layout KAFKA-15226: Add connect-plugin-path and plugin.discovery system test (#14230) 2023-08-18 15:28:43 -07:00
sanity_checks KAFKA-14760: Move ThroughputThrottler from tools to clients, remove tools dependency from connect-runtime (#13313) 2023-07-20 12:58:48 -07:00
services MINOR: Use "add-exports" only when jdk >= 16 in minikdc (#14232) 2023-08-25 11:53:46 +08:00
tests KAFKA-16992: InvalidRequestException: ADD_PARTITIONS_TO_TXN with version 4 which is not enabled when upgrading from kafka (#15971) 2024-05-20 11:13:48 -07:00
utils KAFKA-16992: InvalidRequestException: ADD_PARTITIONS_TO_TXN with version 4 which is not enabled when upgrading from kafka (#15971) 2024-05-20 11:13:48 -07:00
__init__.py MINOR: Update 3.6 branch version to 3.6.3-SNAPSHOT 2024-04-04 22:04:24 +05:30
version.py MINOR: Update 3.6 branch version to 3.6.3-SNAPSHOT 2024-04-04 22:04:24 +05:30