Profile API says that Lucene subquery took longer than whole query took
time
#33489
Labels
:Search/Search
Search-related issues that do not fall into other categories
Elasticsearch version (
bin/elasticsearch --version
):Plugins installed: []
JVM version (
java -version
):OS version (
uname -a
if on a Unix-like system):(Ubuntu 16.04)
Description of the problem including expected versus actual behavior:
Note: I'm assuming that both
took
and the LuceneBooleanQuery
time
are "wall clock" time based on the ElasticSearch docs.The Profile API says that the
time
for an individual LuceneBooleanQuery
on a shard is greater than thetook
time of the total query.This seems impossible as the
BooleanQuery
is part of the larger query (so its time should be<=
).It seems like the problem is probably in the computation of the Lucene query
time
s. On the queries I've looked at, thetook
time while thetime
on Lucene subqueries are much higher than "reasonable." For example, the original (much more verbose) query I was profilingtook
about 2 minutes to complete (which was matched by thecurl
output) while one of theBooleanQuery
time
s said it took ~25 minutes (it did not).Steps to reproduce:
I am able to consistently reproduce the problem on our production cluster:
"person_location_country":{"type":"keyword"}
So far, I haven't been able to reproduce the problem in a standalone Vagrant virtual machine. Any pointers for making that happen are appreciated. If I figure it out, I'll update this bug.
Also happy to provide additional information if necessary.
Provide logs (if relevant):
Can't think of any relevant logs but happy to provide if necessary.
The text was updated successfully, but these errors were encountered: