|
|
|
@ -1744,6 +1744,18 @@ class KafkaConfigTest {
@@ -1744,6 +1744,18 @@ class KafkaConfigTest {
|
|
|
|
|
KafkaConfig.fromProps(props) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
def testMigrationCannotBeEnabledWithJBOD(): Unit = { |
|
|
|
|
val props = TestUtils.createBrokerConfig(1, TestUtils.MockZkConnect, port = TestUtils.MockZkPort, logDirCount = 2) |
|
|
|
|
props.setProperty(KafkaConfig.MigrationEnabledProp, "true") |
|
|
|
|
props.setProperty(KafkaConfig.QuorumVotersProp, "3000@localhost:9093") |
|
|
|
|
props.setProperty(KafkaConfig.ControllerListenerNamesProp, "CONTROLLER") |
|
|
|
|
|
|
|
|
|
assertEquals( |
|
|
|
|
"requirement failed: Cannot enable ZooKeeper migration when multiple log directories (aka JBOD) are in use.", |
|
|
|
|
assertThrows(classOf[IllegalArgumentException], () => KafkaConfig.fromProps(props)).getMessage) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
def testMigrationEnabledKRaftMode(): Unit = { |
|
|
|
|
val props = new Properties() |
|
|
|
|