-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Searcher acquired on transport thread #53985
Labels
blocker
>bug
:Distributed Indexing/Engine
Anything around managing Lucene and the Translog in an open shard.
v7.7.0
Comments
DaveCTurner
added
>bug
:Distributed Indexing/Engine
Anything around managing Lucene and the Translog in an open shard.
labels
Mar 23, 2020
Pinging @elastic/es-distributed (:Distributed/Engine) |
I think this is caused by the changes in #51708 where we now always rewrite the request, even in later phases. FrozenEngine has special handling for the case where the acquired searcher has source type "can_match", but the searcher acquired here is used for more than just rewriting. @jimczi How should we fix this? |
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this issue
Mar 24, 2020
This commit ensures that we rewrite the shard request with a short-lived can_match searcher. This is required for frozen indices since the high level rewrite is now performed on a network thread where we don't want to perform I/O. Closes elastic#53985
jimczi
added a commit
that referenced
this issue
Mar 24, 2020
This commit ensures that we rewrite the shard request with a short-lived can_match searcher. This is required for frozen indices since the high level rewrite is now performed on a network thread where we don't want to perform I/O. Closes #53985
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
blocker
>bug
:Distributed Indexing/Engine
Anything around managing Lucene and the Translog in an open shard.
v7.7.0
Today
SearchService#rewriteShardRequest
runs on a transport thread (Names.SAME
) and callsEngine#acquireSearcher
. If the engine is a frozen engine then this may involve opening a directory reader, which does a fair amount of IO and therefore should not happen on a transport thread.The text was updated successfully, but these errors were encountered: