Kafka configuration using configuration profiles doesn't work #5300
Labels
area/config
area/kafka
area/reactive-messaging
kind/bug
Something isn't working
triage/out-of-date
This issue/PR is no longer valid or relevant
Describe the bug
When I use configuration profile prefixes in my
application.properties
like%prod
to prefix Kafka settings it doesn't seem to pick it up when run as a fat JAR in a container, even though Quarkus claims at starting that it's running with theprod
profile. Depending on which Kafka settings I prefix with%prod
my application never initializes mediators during startup withImpossible to bind mediators, some mediators are not connected
or tries to uselocalhost
when my non-localhostbootstrap-servers
settings are prefixed with%prod
.This happens even with the code from the guide at https://quarkus.io/guides/kafka-guide
Expected behavior
Kafka mediators and connections are properly established. When running in
prod
profile, config values prefixed with%prod.
should be in effect and used to configure extensions like Kafka.Actual behavior
Quarkus appears to ignore settings prefixed with
%prod.
even when inprod
mode (i.e. fat JAR or native build).To Reproduce
Steps to reproduce the behavior:
application.properties
with%prod.
prod
mode instead of dev mode: either build a FAT jar and run withjava -jar
, or build a native image and run that (I have not tried dev mode with-Dquarkus.profile=prod
).Configuration
Screenshots
Environment (please complete the following information):
Output of
uname -a
orver
:Linux workspacendi6xxlz93n3i2we.dockerimage-5b6f9497f4-x4zkg 4.18.0-80.4.2.el8_0.x86_64 #1 SMP Fri Jun 14 13:20:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
:GraalVM version (if different from Java):
19.2.1
CEQuarkus version or git rev:
1.0.0.CR1
Additional context
The text was updated successfully, but these errors were encountered: