smiklosovic commented on code in PR #4400:
URL: https://github.com/apache/cassandra/pull/4400#discussion_r2384286781
##########
src/java/org/apache/cassandra/config/YamlConfigurationLoader.java:
##########
@@ -566,6 +566,7 @@ public static LoaderOptions getDefaultLoaderOptions()
{
LoaderOptions loaderOptions = new LoaderOptions();
loaderOptions.setCodePointLimit(64 * 1024 * 1024); // 64 MiB
+ loaderOptions.setWarnOnDuplicateKeys(false);
Review Comment:
For the record we also have this system property:
/** If we should allow having duplicate keys in the config file, default
to true for legacy reasons */
ALLOW_DUPLICATE_CONFIG_KEYS("cassandra.allow_duplicate_config_keys",
"true"),
So we enable duplicit keys by default. It is just that snakeyaml 2.1 did not
emit warnings but snakeyaml 2.4 does.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]