-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quarkus.devservices.enabled property is ignored if user doesn't set a Kafka broker #37574
Comments
/cc @alesj (kafka), @cescoffier (kafka), @geoand (devservices), @ozangunalp (kafka), @stuartwdouglas (devservices) |
I think I found the issue: it is NOT clear (reading the documentation) that an application.properties file have to be always present with same profiled properties inside. |
@raptus84, can you propose an adjustment? |
@radcortez is the behavior mentioned in the comment above what we expect? If not, was it fixed? |
It is expected and documented here: It is set as a warning in the appropriate section. I'm not sure how to make it clearer. |
Yeah, looks good, thanks. |
The doc reference doesn't explain that there should always be a default application.properties file. When I first read the docs I understood that I could create an application- only. I didn't expect that application-<> works overriding the default one. It is not very clear and a bit useless (in my opinion) having this behaviour. If I want to keep one property file only for each environment, why should I have to keep the default properties file with the same properties inside of it? I think it's weird. |
You only require an We require the main file to be present to ensure a consistent ordering when loading the files. Consider the scenarion
When you query the Classloader for multiple resources, the order is not guaranteed. For example, you may get
The problem here is that We could compare paths and ensure the exact ordering, but where would we put An Of course, I'm biased regarding many of the implementation details and documentation. Feel free to propose an alternate implementation or an enhancement to the documentation to clarify. Thanks! |
Ok thats clear now and of course it was not my case. |
Describe the bug
Hi,
I'm using SmallRye Kafka connector, if I set quarkus.devservices.enabled= false or quarkus.kafka.devservices.enabled=false
but I don't set the broker property, when application is starting Quarkus still uses DevServices ( Dev Services for Kafka started on log console).
Is that a bug or a common behaviour?
Documentation reference:
I understand that the first condition is the most important or these condition are in OR ?
Thank you for reply
Regards
R.
Expected behavior
Quarkus Kafka Dev Services are turned OFF
Actual behavior
Quarkus Kafka Dev Services are turned ON
How to Reproduce?
Latest Quarkus 3.6.0 or 3.5.3 versions and SmallRye Kafka connector.
Remove kafka broker property and disable devservices.
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: