Less records are searched in query if one of the elastic search node is killed out of three running elastic search nodes

I am indexing data in 3 elastic search nodes and performing following steps

Steps:

  1. Start all three nodes of elastic search(replication factor is 2 and no of shards 5).
  2. Insert data and make sure that elastic search contains some data let's say 20000.
  3. Now fire query through REST client to search all data.
  4. Verify that 20000 results are returned and status is shown in query server logs.
  5. Now kill one elastic search just after firing query from REST client.
  6. Less than 20000 records are searched

Is there any reason due to which i am getting less records or Is there any configuration change by which i can get all the
records ??

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a68696b0-5250-4567-9a8a-27f75c2394c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Can you please clarify, when you say "Less than 20000 records are
searched", what exactly do you mean? I.e., how do you know it was less than
20000? Thanks.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1df90bc5-14a7-4d0e-b403-7ad463c84db9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Binh Ly,

Thanks for your quick reply. Problem which i am exactly facing is,

Initially i have 20000 records in my elastic Search cluster with
replication factor 2 and no of nodes are 3.
When i am querying from REST API, i am able to get all the 20000 records. I
am able to check the result size on REST API.

In case if i am shutting down one of my node prior to firing query,i am
able to get all the 20000 records as the replication factor is 2.
But when i am shutting down one of my Elasticsearch node just after firing
the query in that case no of hits are less then 20000 and result size is
also less then 20000.

On Monday, 28 April 2014 19:03:39 UTC+5:30, Binh Ly wrote:

Can you please clarify, when you say "Less than 20000 records are
searched", what exactly do you mean? I.e., how do you know it was less than
20000? Thanks.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/228eb3aa-ae70-4da2-a336-a4f921a0fd15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

In the later request, can you see that some shards failed?
Could you gist the full result you get in that case?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 29 avr. 2014 à 08:27, Nishant Kumar nish.abes@gmail.com a écrit :

Hi Binh Ly,

Thanks for your quick reply. Problem which i am exactly facing is,

Initially i have 20000 records in my elastic Search cluster with replication factor 2 and no of nodes are 3.
When i am querying from REST API, i am able to get all the 20000 records. I am able to check the result size on REST API.

In case if i am shutting down one of my node prior to firing query,i am able to get all the 20000 records as the replication factor is 2.
But when i am shutting down one of my Elasticsearch node just after firing the query in that case no of hits are less then 20000 and result size is also less then 20000.

On Monday, 28 April 2014 19:03:39 UTC+5:30, Binh Ly wrote:
Can you please clarify, when you say "Less than 20000 records are searched", what exactly do you mean? I.e., how do you know it was less than 20000? Thanks.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/228eb3aa-ae70-4da2-a336-a4f921a0fd15%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/256E3941-37F8-4251-BE63-67F7100978FD%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.