Ivan Bessonov created IGNITE-23326:
--------------------------------------
Summary: 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
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)