Skip to content

Commit 040695b

Browse files
CORE: Disable Setting Type Validation (#33660) (#33669)
* Reverts setting type validation introduced in #33503
1 parent e4eb631 commit 040695b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/common/settings/Setting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public final String getRaw(final Settings settings) {
458458
* @return the raw string representation of the setting value
459459
*/
460460
String innerGetRaw(final Settings settings) {
461-
return settings.get(getKey(), defaultValue.apply(settings), isListSetting());
461+
return settings.get(getKey(), defaultValue.apply(settings));
462462
}
463463

464464
/** Logs a deprecation warning if the setting is deprecated and used. */

server/src/test/java/org/elasticsearch/common/settings/SettingTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public void testSimpleUpdate() {
180180
}
181181
}
182182

183+
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/33135")
183184
public void testValidateStringSetting() {
184185
Settings settings = Settings.builder().putList("foo.bar", Arrays.asList("bla-a", "bla-b")).build();
185186
Setting<String> stringSetting = Setting.simpleString("foo.bar", Property.NodeScope);

0 commit comments

Comments
 (0)