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
ElasticsearchIllegalArgumentException when _only_nodes is used as a search preference #12389
Comments
its broken in 1.7 as "_only_nodes" is not parsed to right preference. ( Thanks On Tue, Jul 21, 2015 at 7:08 PM, Pius notifications@github.com wrote:
|
@nirmalc want to send a fix? |
@clintongormley , will look at it today and send fix. I think its minor merge issue with 1.7 tree |
@ppf2 - using enum directly doesnt actually work ; its considering preference as custom string value probably. we consider it as custom preference if preference value begins with "_" |
@nirmalc yah you are right, was testing with just 2 nodes, so it appeared that it worked with ONLY_NODES when switching the node attributes but in fact it was just treating them as custom routing values. Thx for submitting the fix 👍 |
Closed by 2fa7404 |
I can reproduce this using REST and Java API + ES 1.7.0
The following works:
GET /_search?explain&preference=_only_node:6qdURxYySpCWugwxuvIH3g
The following throws the error:
GET /_search?explain&preference=_only_nodes:pod:A
I am able to workaround this by using the ENUM value from org.elasticsearch.cluster.routing.operation.plain.Preference directly:
The following works:
GET /_search?explain&preference=ONLY_NODES:pod:A
_only_nodes should work just like _only_node (and not require using the ONLY_NODES enum)?
The text was updated successfully, but these errors were encountered: