-
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
Native apps throw a warning now that quarkus.uuid
is lazily produced
#45495
Comments
@geoand while at it you might want to apply the following patch as well: diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/RuntimeConfigBuilder.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/RuntimeConfigBuilder.java
index 5c425918ada..ae3fb083cdc 100644
--- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/RuntimeConfigBuilder.java
+++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/RuntimeConfigBuilder.java
@@ -29,16 +29,14 @@ public int priority() {
private static class UuiConfigSource implements ConfigSource {
- private static final String QUARKUS_UUID = "quarkus.uuid";
-
@Override
public Set<String> getPropertyNames() {
- return Set.of(QUARKUS_UUID);
+ return Set.of(ConfigUtils.UUID_KEY);
}
@Override
public String getValue(String propertyName) {
- if (propertyName.equals(QUARKUS_UUID)) {
+ if (propertyName.equals(ConfigUtils.UUID_KEY)) {
return Holder.UUID_VALUE;
}
return null; |
@radcortez what do we need to generate to remove the warning? suppressNonRuntimeConfigChanged.produce(new SuppressNonRuntimeConfigChangedWarningBuildItem("quarkus.uuid")); ? |
quarkus.uuid
is lazily producedquarkus.uuid
is lazily produced
Hum... actually, I don't think we have a build step to ignore the warning. That one is to ignore when something changes from build time to runtime (recorded), like the profile. The only quick option that I can see is to hardcode it here: quarkus/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigDiagnostic.java Lines 93 to 143 in f79ab9a
|
What exactly sets the |
Right, I didn't expect to have this warning |
It was removed from the mapping https://github.com/quarkusio/quarkus/pull/45434/files#r1906838929 :) Actually, I think we can get away with it by removing it from the list of property names: The list of unknowns is generated by matching the list of all properties to the ones declared in either mappings or roots. It could still happen if someone overrides the value. |
It is expected, because we validate that all provided configuration in the |
So @radcortez I'll leave this to you :) |
Sure. |
🙏🏽 |
@radcortez but what in native image is specific that we only get the problem there? Or do we also get the problem in JVM mode? |
quarkus/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigDiagnostic.java Lines 145 to 150 in 8da6801
quarkus/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigDiagnostic.java Lines 156 to 160 in 8da6801
The warning is not thrown at runtime for JVM-mode (didn't check for warnings at compile time). |
Unsure, I'll have to check. |
@radcortez we need this solved very soon or we should revert the change. We can't ship with the warning. We can live with it for the CR1 but we need a fix (or a revert) for the Final so before Tuesday 21st evening. |
Looking into it now. |
Describe the bug
Since #45434 native executables throw the following warning:
Expected behavior
Native apps should not throw any warnings like they do not in JVM-mode.
Actual behavior
Native executables throw the following warning:
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
No response
Mandrel or GraalVM version (if different from Java)
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: