|
|
|
@ -22,8 +22,8 @@ from kafkatest.services.kafka.quorum import isolated_kraft, combined_kraft
@@ -22,8 +22,8 @@ from kafkatest.services.kafka.quorum import isolated_kraft, combined_kraft
|
|
|
|
|
from kafkatest.services.verifiable_producer import VerifiableProducer |
|
|
|
|
from kafkatest.tests.produce_consume_validate import ProduceConsumeValidateTest |
|
|
|
|
from kafkatest.utils import is_int |
|
|
|
|
from kafkatest.version import LATEST_3_0, LATEST_3_1, LATEST_3_2, DEV_BRANCH, \ |
|
|
|
|
KafkaVersion, LATEST_METADATA_VERSION |
|
|
|
|
from kafkatest.version import LATEST_3_1, LATEST_3_2, LATEST_3_3, LATEST_3_4, LATEST_3_5, \ |
|
|
|
|
DEV_BRANCH, DEV_VERSION, KafkaVersion, LATEST_METADATA_VERSION |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# Test upgrading between different KRaft versions. |
|
|
|
@ -111,12 +111,20 @@ class TestKRaftUpgrade(ProduceConsumeValidateTest):
@@ -111,12 +111,20 @@ class TestKRaftUpgrade(ProduceConsumeValidateTest):
|
|
|
|
|
@cluster(num_nodes=5) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_1), metadata_quorum=combined_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_2), metadata_quorum=combined_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_3), metadata_quorum=combined_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_4), metadata_quorum=combined_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_5), metadata_quorum=combined_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(DEV_VERSION), metadata_quorum=combined_kraft) |
|
|
|
|
def test_combined_mode_upgrade(self, from_kafka_version, metadata_quorum): |
|
|
|
|
self.run_upgrade(from_kafka_version) |
|
|
|
|
|
|
|
|
|
@cluster(num_nodes=8) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_1), metadata_quorum=isolated_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_2), metadata_quorum=isolated_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_3), metadata_quorum=isolated_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_4), metadata_quorum=isolated_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(LATEST_3_5), metadata_quorum=isolated_kraft) |
|
|
|
|
@parametrize(from_kafka_version=str(DEV_VERSION), metadata_quorum=isolated_kraft) |
|
|
|
|
def test_isolated_mode_upgrade(self, from_kafka_version, metadata_quorum): |
|
|
|
|
self.run_upgrade(from_kafka_version) |
|
|
|
|
|
|
|
|
|