# "All shards failed for phase: \[query\]" message

**URL:** <https://discuss.elastic.co/t/all-shards-failed-for-phase-query-message/17788>\
**Category:** Elasticsearch\
**Created:** [May 28, 2014, 6:19pm UTC](https://discuss.elastic.co/t/all-shards-failed-for-phase-query-message/17788 "2014-05-28T18:19:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Tolman](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@Mike\_Tolman](https://discuss.elastic.co/u/Mike_Tolman)\
**Post date:** [May 28, 2014, 6:19pm UTC](https://discuss.elastic.co/t/all-shards-failed-for-phase-query-message/17788/1 "2014-05-28T18:19:01Z")

</div>

Hi,

I have written some integration tests to run against the 1.2.0 version of  
elasticsearch. The tests create indexes, add data to indexes, perform  
searches, and delete indexes. My tests seem to be passing and working  
correctly, but I'm concerned that I often see these messages showing up in  
the logs:

[2014-05-28 12:15:37,604][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,609][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,614][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,635][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,638][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,643][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,644][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,646][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]  
[2014-05-28 12:15:37,649][DEBUG][action.search.type]  
[ESIntegrationTestNode] All shards failed for phase: [query]

Can anyone help me understand what these messages mean? I'm just worried  
that they may be pointing to some error in my implementation.

Thanks,  
Mike

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6263ae56-eace-4cd9-a1db-1c19fa52d6da%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6263ae56-eace-4cd9-a1db-1c19fa52d6da%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 1, 2014, 8:25pm UTC](https://discuss.elastic.co/t/all-shards-failed-for-phase-query-message/17788/2 "2014-06-01T20:25:56Z")

</div>

hey,

can you show a test which reproduces this behaviour? This means, that all  
of your searches against all shards seem to have failed. Any messages  
before that/after that or on other nodes (usually you should be able to  
spot a suggestion somewhere, maybe your index is not yet ready to be  
queried)?

--Alex

On Wed, May 28, 2014 at 8:19 PM, Mike Tolman [mtolman@gmail.com](mailto:mtolman@gmail.com) wrote:

> Hi,
> 
> I have written some integration tests to run against the 1.2.0 version of  
> elasticsearch. The tests create indexes, add data to indexes, perform  
> searches, and delete indexes. My tests seem to be passing and working  
> correctly, but I'm concerned that I often see these messages showing up in  
> the logs:
> 
> [2014-05-28 12:15:37,604][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,609][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,614][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,635][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,638][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,643][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,644][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,646][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]  
> [2014-05-28 12:15:37,649][DEBUG][action.search.type]  
> [ESIntegrationTestNode] All shards failed for phase: [query]
> 
> Can anyone help me understand what these messages mean? I'm just worried  
> that they may be pointing to some error in my implementation.
> 
> Thanks,  
> Mike
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6263ae56-eace-4cd9-a1db-1c19fa52d6da%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6263ae56-eace-4cd9-a1db-1c19fa52d6da%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6263ae56-eace-4cd9-a1db-1c19fa52d6da%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6263ae56-eace-4cd9-a1db-1c19fa52d6da%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-Krpby28\_0pdwEyXmz5uZ\_f07R5a1J6sLHX7My6\_hegg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-Krpby28_0pdwEyXmz5uZ_f07R5a1J6sLHX7My6_hegg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:25am UTC](https://discuss.elastic.co/t/all-shards-failed-for-phase-query-message/17788/3 "2017-07-06T01:25:22Z")

</div>


