Skip to content

Commit

Permalink
CORE: Disable Setting Type Validation (#33660) (#33669)
Browse files Browse the repository at this point in the history
* Reverts setting type validation introduced in #33503
  • Loading branch information
original-brownbear authored Sep 13, 2018
1 parent e4eb631 commit 040695b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public final String getRaw(final Settings settings) {
* @return the raw string representation of the setting value
*/
String innerGetRaw(final Settings settings) {
return settings.get(getKey(), defaultValue.apply(settings), isListSetting());
return settings.get(getKey(), defaultValue.apply(settings));
}

/** Logs a deprecation warning if the setting is deprecated and used. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ public void testSimpleUpdate() {
}
}

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

0 comments on commit 040695b

Please sign in to comment.