-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String settings leniently accept lists #33135
Comments
Pinging @elastic/es-core-infra |
* Special handling for `String` in the generic Setting class because we parse raw values String values for all types: * If we parse out a `String` setting validate that it came from a scalar raw value * Closes elastic#33135
The fix broke |
@s1monw @jasontedor question here: Is it true that the only reason we can't do 6075e15 is because they break the "dummy settings" used by Tribe here: https://github.com/elastic/elasticsearch/blob/6.x/modules/tribe/src/main/java/org/elasticsearch/tribe/TribePlugin.java#L177 Or is this kind of hard validation a problem beyond just Tribe and we want to allow this kind of "validation" or mixed list and scalar settings in general? |
A use can specify |
@original-brownbear Did you ever get an answer to your question? Can we reintroduce the fix now that Tribe has been removed? |
No but I think we can give the fix another go, it did only affect Tribe in the past. Do you want/need this in the near future? (should be trivial to open a new PR that is the same as the original fix) |
Thanks! I have no particular need for this - this is part of core/infra's issue cleanup and I was just checking on the current status. Sounds like we just need someone to make sure your original patch from #33503 is up to date for current master and re-submit. |
If no one's working on this, can I give this a shot? |
@amitds1997 You are welcome to try. Note that this may be a little tricky, though I don't want to deter you from attempting it. I believe the underlying problem is |
@rjernst What I gathered from gwbrown's comment is that we have to re-implement the original patch against the master. Please let me know if I have missed out on anything not present in that patch. |
@amitds1997 That could be it, I'm not sure. It should be simple to test, though. |
Still an issue, discussing with Core/Infra to prioritise |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Note: This will require a deprecation warning to prevent clusters from breaking when upgrading. |
If you got here from the
good first issue
label, see this comment.For example, the following
elasticsearch.yml
...... starts up a node called
[node-a, node-b]
:In fact this is what's happening in #30946. The following API call...
... sets
cluster.routing.allocation.exclude._name
to the string[elasticsearch-data-0]
, which then does not match the node calledelasticsearch-data-0
so the allocation is not filtered as expected.The text was updated successfully, but these errors were encountered: