Closed robobario closed 1 year ago
FYI I'm Happy to contribute this.
I wonder if there should also be a flag to disable the convenient overriding of properties and exclusively use the properties file.
That'd be cool!
I'd add an option to ServerConfig
and use it in https://github.com/ozangunalp/kafka-native/blob/4bfe084759cf26cb6553b445b06ecc56c2eceabc/kafka-server/src/main/java/com/ozangunalp/kafka/server/EmbeddedKafkaBroker.java#L175-L177 to disable all three config options to use the server.properties
only.
Hi,
We are interested in using the native image to test a cluster with some controller-only nodes, so
process.roles=controller
. We have:broker,controller
controller
controller
Here's our
server.properties
for one of the controller-only containers:When we start it up we see a failure like:
It looks like advertised.listeners is being defaulted here if we don't specify it, using PLAINTEXT as listener name by default. So it fails when it tries to lookup the security protocol.
I tried setting advertised listeners to match
listeners
via the env var, and then get a failure:And I couldn't see a way to unset it, smallrye complains if you set the env var to an empty string.
So it appears advertised.listeners is incompatible with controller only mode, would it make sense to add a check here to make it not set up the default
advertised.listeners
if the only role iscontroller
?