From daef8d86a9590acdf331168d78f8fdb2c3b05f08 Mon Sep 17 00:00:00 2001 From: Xinze Guo <101622833+azexcy@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:12:01 +0800 Subject: [PATCH] Change maxAliasesForCollections to 1000 --- .../apache/shardingsphere/agent/core/yaml/AgentYamlEngine.java | 2 +- .../util/yaml/constructor/ShardingSphereYamlConstructor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/yaml/AgentYamlEngine.java b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/yaml/AgentYamlEngine.java index a1f68fc90b895..06316d057cd76 100644 --- a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/yaml/AgentYamlEngine.java +++ b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/yaml/AgentYamlEngine.java @@ -54,7 +54,7 @@ public static YamlAdvisorsConfiguration unmarshalYamlAdvisorsConfiguration(final private static LoaderOptions createLoaderOptions() { LoaderOptions result = new LoaderOptions(); - result.setMaxAliasesForCollections(Integer.MAX_VALUE); + result.setMaxAliasesForCollections(1000); result.setCodePointLimit(Integer.MAX_VALUE); return result; } diff --git a/infra/util/src/main/java/org/apache/shardingsphere/infra/util/yaml/constructor/ShardingSphereYamlConstructor.java b/infra/util/src/main/java/org/apache/shardingsphere/infra/util/yaml/constructor/ShardingSphereYamlConstructor.java index 908bf0d995db0..09cfae8ec1d91 100644 --- a/infra/util/src/main/java/org/apache/shardingsphere/infra/util/yaml/constructor/ShardingSphereYamlConstructor.java +++ b/infra/util/src/main/java/org/apache/shardingsphere/infra/util/yaml/constructor/ShardingSphereYamlConstructor.java @@ -49,7 +49,7 @@ public ShardingSphereYamlConstructor(final Class rootClass) { private static LoaderOptions createLoaderOptions() { LoaderOptions result = new LoaderOptions(); - result.setMaxAliasesForCollections(Integer.MAX_VALUE); + result.setMaxAliasesForCollections(1000); result.setCodePointLimit(Integer.MAX_VALUE); return result; }