You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
143 Kafka should be configured to point to the launched zookeeper (#145)
instance. Previously, if 0 was passed for both kafka and zookeeper
ports, zookeeper would start on an available port; however, kafka was
told that zookeeper was listening on port 0.
I also removed the implicit config from `EmbeddedK`. It didn't look
like it was being used anywhere... However, I added it as a required
argument. This was done to allow Java code like this:
```java
int kafkaPort = 0;
int zookeeperPort = 0;
EmbeddedKafka$ kafka = EmbeddedKafka$.MODULE$;
EmbeddedKafkaConfig cfg = new EmbeddedKafkaConfigImpl(
kafkaPort,
zookeeperPort,
Map$.MODULE$.empty(),
Map$.MODULE$.empty(),
Map$.MODULE$.empty()
);
EmbeddedK serverInfo = kafka.start(cfg);
EmbeddedKafkaConfig actualCfg = serverInfo.config();
kafka.publishStringMessageToKafka("topic", "message", actualCfg);
```
0 commit comments