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
Indexed Scripts/Templates: Indexed Scripts used during reduce phase sometimes hang #7623
Labels
Comments
s1monw
added a commit
to s1monw/elasticsearch
that referenced
this issue
Sep 8, 2014
Reduce Phases can be expensive and some of them like the aggregations reduce phase might even execute a one-off call via an internal client that might cause a deadlock due to execution on the network thread that is needed to handle the one-off call. This commit dispatches the reduce phase to the search threadpool to ensure we don't wait for the current thread to be available. Closes elastic#7623
s1monw
added a commit
that referenced
this issue
Sep 8, 2014
Reduce Phases can be expensive and some of them like the aggregations reduce phase might even execute a one-off call via an internal client that might cause a deadlock due to execution on the network thread that is needed to handle the one-off call. This commit dispatches the reduce phase to the search threadpool to ensure we don't wait for the current thread to be available. Closes #7623
s1monw
added a commit
that referenced
this issue
Sep 8, 2014
Reduce Phases can be expensive and some of them like the aggregations reduce phase might even execute a one-off call via an internal client that might cause a deadlock due to execution on the network thread that is needed to handle the one-off call. This commit dispatches the reduce phase to the search threadpool to ensure we don't wait for the current thread to be available. Closes #7623
clintongormley
changed the title
[SEARCH] Indexed Scripts used during reduce phase sometimes hang
Indexed scripts/templates: Indexed Scripts used during reduce phase sometimes hang
Sep 8, 2014
clintongormley
changed the title
Indexed scripts/templates: Indexed Scripts used during reduce phase sometimes hang
Indexed Scripts/Templates: Indexed Scripts used during reduce phase sometimes hang
Sep 8, 2014
clintongormley
added
v1.4.0.Beta
v1.4.0.Beta1
and removed
v1.4.0.Beta1
v1.4.0.Beta
labels
Sep 12, 2014
mute
pushed a commit
to mute/elasticsearch
that referenced
this issue
Jul 29, 2015
Reduce Phases can be expensive and some of them like the aggregations reduce phase might even execute a one-off call via an internal client that might cause a deadlock due to execution on the network thread that is needed to handle the one-off call. This commit dispatches the reduce phase to the search threadpool to ensure we don't wait for the current thread to be available. Closes elastic#7623
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indexed scripts might need to get fetched via a GET call which is very cheap since those shards are local since they expand
[0-all]
but sometimes in the case of a node client holding no data we need to do a get call on the first get. Yet this get call seems to be executed on the transport thread and might deadlock since it needs that thread to process the get response. See stacktrace below... The problem here is that some of the actions inSearchServiceTransportAction
don't use thesearch
threadpool but useSAME
instead which can cause this issue. We should useSEARCH
instead for the most of the operations except of free context I guess.The text was updated successfully, but these errors were encountered: