v.19.14Improvement
Throw an Exception If Config.d File Does Not Have the Corresponding Root Element as the Config File
Throw an exception if config.d file does not have the corresponding root element as the config file. #6123 (dimarub2000)Why it matters
This feature ensures configuration consistency by validating that every file in theconfig.d directory has the correct root XML element matching the main config file. It prevents misconfigurations and potential runtime issues caused by incorrectly structured config snippets.How to use it
Users benefit from this feature automatically when adding.d configuration files. If a config.d file does not contain the expected root element, ClickHouse will throw an exception during startup or config reload, alerting users to fix the XML structure.