I have been having some problem with a failing test (using the
ElasticsearchIntegrationTest) that was testing scrolling.
It took quite a while to notice that in my response was an indication I was
getting a shard failure (my search response was OK, but the response
included shard failures).
I strongly suspect this is why I am not getting the results I expect from
the scroll (ie no results, totalHits=0)
When I dump the search response, I get a bit of a cryptic (at least for me)
message and I can't figure out what the cause is:
e.g.
{
"_scroll_id" : "c2NhbjswOzE7dG90YWxfaGl0czoxOw==",
"took" : 11,
"timed_out" : false,
"_shards" : {
"total" : 10,
"successful" : 9,
"failed" : 1,
"failures" : [ {
"index" : "logistics",
"shard" : 8,
"status" : 500,
"reason" : "QueryPhaseExecutionException[[logistics][8]:
query[+ConstantScore(cache(_type:quota))
+(groupCompanyId:582D1EE6CDF54510AAA7CC2AA635F31B)
+_all:cancelled*],from[0],size[500]: Query Failed [Failed to execute main
query]]; nested: AssertionError; "
} ]
},
"hits" : {
"total" : 1000,
"max_score" : 0.0,
"hits" : [ ]
}
}
1) I would have expected this error to manifest itself in the form of an
exception (java api) rather than having to inspect shard failures manually
(given the impact on the results).
I have seen all shards fail, but still no error reported. Is this expected?
2) How can I get a full stack trace of the error related to the shard
failure? "nested: AssertionError;" is teasing me with the fact that there
*is* more info, but its being kept from me.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/023bdc12-6e6a-4bd2-a357-f8419cb4a403%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.