[
https://issues.apache.org/jira/browse/IGNITE-23324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Puchkovskiy updated IGNITE-23324:
---------------------------------------
Description:
Configuration produced from the following template
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()
+ "}";
is validated successfully, even though it has duplicate key
(ignite.storage.profiles). We should not allow such duplicates as they may hide
user errors.
> Configuration in HOCON allows duplicate keys
> --------------------------------------------
>
> Key: IGNITE-23324
> URL: https://issues.apache.org/jira/browse/IGNITE-23324
> Project: Ignite
> Issue Type: Bug
> Reporter: Roman Puchkovskiy
> Priority: Major
> Labels: ignite-3
>
> Configuration produced from the following template
> 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()
> + "}";
> is validated successfully, even though it has duplicate key
> (ignite.storage.profiles). We should not allow such duplicates as they may
> hide user errors.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)