[
https://issues.apache.org/jira/browse/IGNITE-23326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Shergalis updated IGNITE-23326:
---------------------------------------
Labels: ignite-3 (was: )
> Configuration parser allows duplicated keys
> -------------------------------------------
>
> Key: IGNITE-23326
> URL: https://issues.apache.org/jira/browse/IGNITE-23326
> Project: Ignite
> Issue Type: Bug
> Reporter: Ivan Bessonov
> Assignee: Philipp Shergalis
> Priority: Major
> Labels: ignite-3
>
> Currently, this code leads to no warnings or errors:
> {code:java}
> String configTemplate = "ignite {\n"
> + " \"network\": {\n"
> + " \"port\":{},\n"
> + " \"nodeFinder\":{\n"
> + " \"netClusterNodes\": [ {} ]\n"
> + " }\n"
> + " },\n"
> + " storage.profiles: {"
> + " " + DEFAULT_STORAGE_PROFILE + ".engine: aipersist, "
> + " " + DEFAULT_STORAGE_PROFILE + ".size: 2073741824 "
> + " },\n"
> + " storage.profiles: {"
> + " " + DEFAULT_STORAGE_PROFILE + ".engine: aipersist, "
> + " " + DEFAULT_STORAGE_PROFILE + ".size: 2073741824 " //
> Avoid page replacement.
> + " },\n"
> + " clientConnector: { port:{} },\n"
> + " rest.port: {},\n"
> + " raft.fsync = " + fsync()
> + "}"; {code}
> This behavior is confusing and error-prone for the end user, we shouldn't
> allow it
--
This message was sent by Atlassian Jira
(v8.20.10#820010)