Thousands of SearchContextMissingException: No search context found for id
See original GitHub issueVersion 2.1.1 We are using es-hadoop with spark, but each time our job runs the elasticsearch logs are spoiled with the errors like below:
This is causing the logfiles to grow by many gigabytes each day
[2015-10-15 06:31:11,699][DEBUG][action.search.type ] [es-007] [120600] Failed to execute query phase
org.elasticsearch.transport.RemoteTransportException [es-012][inet[/192.168.0.12:9300]][indices:data/read/search[phase/scan/scroll]]
Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [120600]
at org.elasticsearch.search.SearchService.findContext(SearchService.java:537)
at org.elasticsearch.search.SearchService.executeScan(SearchService.java:265)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchScanScrollTransportHandler.messageReceived(SearchServiceTransportAction.java:939)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchScanScrollTransportHandler.messageReceived(SearchServiceTransportAction.java:930)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
What does "No search context found for id ..." mean?
I see this error when the search context has timed out so it's no longer present in the cluster. The helpers. scan function...
Read more >search_context_missing_excepti...
size(1000)). search_context_missing_exception","reason":"No search context found for id. And, the error throws on this line searchResponse = ...
Read more >Cleanup tasks fail with "No search context found for id" error
Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [7] at org.elasticsearch.search.
Read more >search failed due to SearchPhaseExecutionException. Will ...
A detailed guide on how to resolve errors related to "search failed due to SearchPhaseExecutionException. Will attempt again with new scroll"
Read more >SearchContextMissingException - No search context found for id
Hi, I am using ES version 1.6.0 and the Python plugin for ES. I have a large collection of documents inside my index...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sjoerdmulder Since the issue was detected (thanks for the test) and fixed I’m closing the issue. Feel free to open another one if it keeps occuring.
Cheers,
@sjoerdmulder I managed to replicate the issue and track it down (thanks to @clintongormley ) to 2.1.x not picking up the new
scrol;_id
when iterating across the index. The issue did not appear in master (2.2.x). The work for this in master was done as part of #537. I’ll back port it to 2.1.x as well