chia7712 commented on code in PR #15916: URL: https://github.com/apache/kafka/pull/15916#discussion_r1606846442
########## core/src/test/scala/integration/kafka/zk/ZkMigrationIntegrationTest.scala: ########## @@ -64,7 +64,9 @@ import scala.jdk.CollectionConverters._ object ZkMigrationIntegrationTest { - def zkClustersForAllMigrationVersions(clusterGenerator: ClusterGenerator): Unit = { + // FIXME: test times from 8 to 25? + def zkClustersForAllMigrationVersions(): java.util.List[ClusterConfig] = { + val ret : java.util.List[ClusterConfig] = new java.util.ArrayList[ClusterConfig]() Review Comment: ```scala Seq( MetadataVersion.IBP_3_4_IV0, MetadataVersion.IBP_3_5_IV2, MetadataVersion.IBP_3_6_IV2, MetadataVersion.IBP_3_7_IV0, MetadataVersion.IBP_3_7_IV1, MetadataVersion.IBP_3_7_IV2, MetadataVersion.IBP_3_7_IV4, MetadataVersion.IBP_3_8_IV0 ).map { mv => val serverProperties = new util.HashMap[String, String]() serverProperties.put("inter.broker.listener.name", "EXTERNAL") serverProperties.put("listeners", "PLAINTEXT://localhost:0,EXTERNAL://localhost:0") serverProperties.put("advertised.listeners", "PLAINTEXT://localhost:0,EXTERNAL://localhost:0") serverProperties.put("listener.security.protocol.map", "EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT") ClusterConfig.defaultBuilder() .setMetadataVersion(mv) .setBrokers(3) .setServerProperties(serverProperties) .setTypes(Set(Type.ZK).asJava) .build() }.asJava ``` How about using above style? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org