WillemJiang commented on a change in pull request #767: [SCB-662]Using cse/servicecomb duplicate key will get list of values URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/767#discussion_r194938659
########## File path: foundations/foundation-config/src/main/java/org/apache/servicecomb/config/ConfigUtil.java ########## @@ -171,7 +171,14 @@ private static void duplicateServiceCombConfigToCse(AbstractConfiguration source } String cseKey = CONFIG_CSE_PREFIX + key.substring(key.indexOf(".") + 1); - source.addProperty(cseKey, source.getProperty(key)); + if (!source.containsKey(cseKey)) { + source.addProperty(cseKey, source.getProperty(key)); + } else { + LOGGER + .warn( Review comment: Not sure if the warning message is enough for this time, if the configuration is wrong, java-chassis may need to stop working instead of sending out the warning message to let the admin know about it. BTW, we may need a default override policy here. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services