-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Sorting on a text field hangs #32
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
Comments
Looked at it and found a problem in search "map reduce" logic where if just certain shards fail, the action will not finish. I have just pushed a fix. The problem you have is the fact that when you sort on string types, you must have them not analyzed (in the type mapping). Lucene might still perform the sort when they are analyzed, but it will throw a runtime exception when it can't (and this is what happens on some of the shards). As a side note, I am going to spend time the next days to return proper failure messages from all operations, and not just counters on shards that failed. If you can verify on your end that it is solved, I can close this issue. |
Fixed ++ |
Closes #32. (cherry picked from commit 4d17e47)
With the current way that Java lists are wrapped into a Scriptable, all methods that are not defined on the java.util.List interface are hidden. This pull request makes NativeList extend NativeJavaObject in order to use reflection in order to look up properties that would not be defined on the List interface. Close #32
Previously, each follower's has-the-leader-failed detector was passive, firing if it had not received a message from the leader sufficiently recently. This may not detect asymmetric connectivity issues, and may not help in the situation where the follower has not yet joined the cluster fully. Also the leader only really cares about having a quorum of healthy followers, so would not always take appropriate action if its connection with a single follower was disrupted. This change alters the behaviour to have the follower actively check that the leader is healthy, with a configurable number of retries allowed before considering the leader to have failed. This also lets the follower check more things about the state of the leader before deciding on its health.
Make the testing work again
With this commit we load all tracks from an external file. Closes elastic#32
{ sort: { text_field: {} }} just hangs - no response.
Doesn't matter if I create an explicit mapping or not, or search on one index/type combination or _all
Test script:
curl -XGET 'http://127.0.0.1:9200/_cluster/nodes'
curl -XDELETE 'http://127.0.0.2:9200/es_test/'
curl -XDELETE 'http://127.0.0.2:9200/es_test_2/'
curl -XPOST 'http://127.0.0.2:9200/_flush?refresh=true'
curl -XPUT 'http://127.0.0.2:9200/es_test/'
curl -XPUT 'http://127.0.0.2:9200/es_test_2/'
curl -XPOST 'http://127.0.0.2:9200/_flush?refresh=true'
The text was updated successfully, but these errors were encountered: