# Incorrect document count during shard relocation

**URL:** <https://discuss.elastic.co/t/incorrect-document-count-during-shard-relocation/14715>\
**Category:** Elasticsearch\
**Created:** [December 4, 2013, 8:03pm UTC](https://discuss.elastic.co/t/incorrect-document-count-during-shard-relocation/14715 "2013-12-04T20:03:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Ganapathy](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@Anand\_Ganapathy](https://discuss.elastic.co/u/Anand_Ganapathy)\
**Post date:** [December 4, 2013, 8:03pm UTC](https://discuss.elastic.co/t/incorrect-document-count-during-shard-relocation/14715/1 "2013-12-04T20:03:43Z")

</div>

Not sure if this is a known issue, I had about 200 million docs and was  
running the cluster-wide count query of documents.

The count was flipping back and forth, one time it said 199.9 and then  
flipped back to 200 and back to 199.x and so on.

I noticed shard relocation during this time, not sure if it is related. I  
am using ElasticSearch 0.90.7 and Java 1.7 Update 45 Oracle.

Any pointers ?

--  
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/f0cbb993-3a45-4ba2-9d73-9a9de9f4eefb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f0cbb993-3a45-4ba2-9d73-9a9de9f4eefb%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:03am UTC](https://discuss.elastic.co/t/incorrect-document-count-during-shard-relocation/14715/2 "2017-07-06T02:03:14Z")

</div>

Closed on July 6, 2017, 2:03am UTC


