title: SearchContextMissingException Failed to execute fetch phase [search/phase/fetch/id]
body: <hr>
  
  <p><strong>Cluser:</strong> I am Using elasticsearch 1.3.1 with 6 nodes in different servers, which are all connected with by LAN. The bandwidth is high and the each one has 45 GB RAM in it. </p>
  
  <p><strong>Configuration</strong> The Heap size we allocated for the node to run is 10g. We do have the elasticsearch default configuration except the unique discoverym, cluster name, node name and we 2 zone. 3 node belongs to one zone and the other belongs to another zone.</p>
  
  <p><strong>indices</strong>: 15, total size of the indices is 76GB.</p>
  
  <p>Now a days i am facing the <code>SearchContextMissingException</code> exception as DEBUG log. It smells like some search query has taken to much of time to fetch. but I checked with queries, there was no query to produce high amount of load to the cluster... I am wondering why this happen.</p>
  
  <p><strong>Issue:</strong> Due to this issue one by one all the nodes start to collect GC. and result in the OOM :(</p>
  
  <p>Here is my exception. Please kindly explain me 2 things.</p>
  
  <ol>
  <li>What is <code>SearchContextMissingException</code>? Why it happen?</li>
  <li>How can we prevent the cluster from these type of query?</li>
  </ol>
  
  <p>The Error:</p>
  
  <pre><code>[YYYY-MM-DD HH:mm:ss,039][DEBUG][action.search.type ] [es_node_01] [5031530] 
     Failed to execute fetch phase 
     org.elasticsearch.transport.RemoteTransportException: [es_node_02][inet[/1x.x.xx.xx:9300]][search/phase/fetch/id] 
     Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [5031530] 
         at org.elasticsearch.search.SearchService.findContext(SearchService.java:480) 
         at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:450) 
         at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:793) 
         at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:782) 
         at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:275) 
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
         at java.lang.Thread.run(Thread.java:722)
  </code></pre>