On Wed, Feb 5, 2014 at 6:33 PM, asanderson <a.steven.ander...@gmail.com>wrote:

> Actually, I did indeed determine that for a few indexes there were
> different doc counts between some shards and their replicas.
>
> Under what circumstances could this happen, and what's the fastest/easiest
> way to correct this situation?
>

This is something that shouldn't happen on a refreshed index. Could you run
a refresh on the indices that have different counts per shard:

  curl -XPOST localhost:9200/${index_name}/_refresh

And then show two responses to
  curl http://localhost:9200/${index_name}/_search
that return different counts?

Regarding fixing, the easiest way would be to set the `number_of_replicas`
setting to 0 and then back to its original value: this will deallocate
replica shards and then allocate them again and they will get copied from
the primaries.

-- 
Adrien Grand

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4tE%2BOFmvvD%2BCyCHkQLPz8Rnbc-p%3DSQORwU_0ZPs9Bk2A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to