Mirza Aliev created IGNITE-19152:
------------------------------------

             Summary: Named list support in HOCON configuration is broken. 
                 Key: IGNITE-19152
                 URL: https://issues.apache.org/jira/browse/IGNITE-19152
             Project: Ignite
          Issue Type: Bug
            Reporter: Mirza Aliev


After IGNITE-18581 we have started to store local configuration in local config 
file, instead of vault. 

The current flow with the saving configuration to a file has a bug. In the 
method {{LocalFileConfigurationStorage#write}} we call 
{{LocalFileConfigurationStorage#saveValues}}  to save configuration fields to a 
file, where we call {{LocalFileConfigurationStorage#renderHoconString}}. Named 
list value has internal id which is {{UUID}}, but {{com.typesafe}} do not 
support {{UUID}}, so the whole process of saving configuration to a file fails 
with 

{noformat}
Caused by: com.typesafe.config.ConfigException$BugOrBroken: bug in method 
caller: not valid to create ConfigValue from: 
489e16e8-3123-44a3-b27d-6e410863eb24
        at 
app//com.typesafe.config.impl.ConfigImpl.fromAnyRef(ConfigImpl.java:282)
        at 
app//com.typesafe.config.impl.PropertiesParser.fromPathMap(PropertiesParser.java:165)
        at 
app//com.typesafe.config.impl.PropertiesParser.fromPathMap(PropertiesParser.java:95)
        at 
app//com.typesafe.config.impl.ConfigImpl.fromAnyRef(ConfigImpl.java:265)
        at 
app//com.typesafe.config.impl.ConfigImpl.fromPathMap(ConfigImpl.java:201)
        at 
app//com.typesafe.config.ConfigFactory.parseMap(ConfigFactory.java:1225)
        at 
app//com.typesafe.config.ConfigFactory.parseMap(ConfigFactory.java:1236)
        at 
app//org.apache.ignite.internal.configuration.storage.LocalFileConfigurationStorage.renderHoconString(LocalFileConfigurationStorage.java:208)
        at 
app//org.apache.ignite.internal.configuration.storage.LocalFileConfigurationStorage.saveValues(LocalFileConfigurationStorage.java:185)
        at 
app//org.apache.ignite.internal.configuration.storage.LocalFileConfigurationStorage.write(LocalFileConfigurationStorage.java:138)
        at 
app//org.apache.ignite.internal.configuration.ConfigurationChanger.changeInternally0(ConfigurationChanger.java:606)
        at 
app//org.apache.ignite.internal.configuration.ConfigurationChanger.lambda$changeInternally$1(ConfigurationChanger.java:541)
{noformat}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to