Skip to content

Commit

Permalink
Fix listeners to make it compatible with Apache Kafka 3.9.0
Browse files Browse the repository at this point in the history
Fixes #9506
  • Loading branch information
eddumelendez committed Nov 7, 2024
1 parent 0200a5d commit 41e9ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ static Map<String, String> envVars() {
Map<String, String> envVars = new HashMap<>();
envVars.put("CLUSTER_ID", DEFAULT_CLUSTER_ID);

envVars.put(
"KAFKA_LISTENERS",
"PLAINTEXT://0.0.0.0:" + KAFKA_PORT + ",BROKER://0.0.0.0:9093,CONTROLLER://0.0.0.0:9094"
);
envVars.put("KAFKA_LISTENERS", "PLAINTEXT://:" + KAFKA_PORT + ",BROKER://:9093,CONTROLLER://:9094");
envVars.put(
"KAFKA_LISTENER_SECURITY_PROTOCOL_MAP",
"BROKER:PLAINTEXT,PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class KafkaContainerTest extends AbstractKafka {
@Test
public void testUsage() throws Exception {
try ( // constructorWithVersion {
KafkaContainer kafka = new KafkaContainer("apache/kafka-native:3.8.0")
KafkaContainer kafka = new KafkaContainer("apache/kafka-native:3.9.0")
// }
) {
kafka.start();
Expand Down

0 comments on commit 41e9ff6

Please sign in to comment.