]
Michal Jurc commented on WFWIP-60:
----------------------------------
[~jmesnil] I think that having at least an arbitrary rule is better than inconsistence so
that suggestion is fine by me :)
smallrye-config: Consider logging a message when properties with same
key and ordinal are present
-------------------------------------------------------------------------------------------------
Key: WFWIP-60
URL:
https://issues.jboss.org/browse/WFWIP-60
Project: WildFly WIP
Issue Type: Enhancement
Components: MP Config
Reporter: Michal Jurc
Assignee: Jeff Mesnil
Consider a deployment with default {{microprofile-config.properties}}:
{code}managementDefault=Default value from default microprofile-config.properties{code}
Deployment is deployed on server with the following {{ConfigSource}} defined:
{code}[standalone@localhost:9990 /]
/subsystem=microprofile-config-smallrye/config-source=testdefault:read-resource
{
"outcome" => "success",
"result" => {
"class" => undefined,
"dir" => undefined,
"ordinal" => 100,
"properties" => {"managementDefault" => "Value
from WildFly microprofile-config-smallrye config-source"}
}
}
{code}
Property {{"managementDefault"}} is always resolved to {{"Value from
WildFly microprofile-config-smallrye config-source"}} in deployment.
It would be useful to log a {{WARN}} level message when there is conflict like this with
a notification of {{ConfigSources}} to save detective work in real world scenarios.