Will turnning allow_primary on delete the exist shard?

Hi,

We had some outage wiht ES cluster. So that we cutoff the incomming and
outgoing traffic to/from ES cluster.

but we see lots of unassigned shards and get get them allocated
automatically.

Question is, will tuning allow_primary flag on when manually allocating the
shards delete the existing data?
I did so, and saw those shards immediately became available with size 0b.

THanks,
Yang

--
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/7ebd6baf-dd5b-40db-8894-a203b9607e8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

The docs mention this is a possibility -
http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html

allocate

Allocate an unassigned shard to a node. Accepts the index and shard for
index name and shard number, and node to allocate the shard to. It also
accepts allow_primary flag to explicitly specify that it is allowed to
explicitly allocate a primary shard (might result in data loss).

On 2 April 2015 at 14:39, yang@getblueshift.com wrote:

Hi,

We had some outage wiht ES cluster. So that we cutoff the incomming and
outgoing traffic to/from ES cluster.

but we see lots of unassigned shards and get get them allocated
automatically.

Question is, will tuning allow_primary flag on when manually allocating
the shards delete the existing data?
I did so, and saw those shards immediately became available with size 0b.

THanks,
Yang

--
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/7ebd6baf-dd5b-40db-8894-a203b9607e8a%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/7ebd6baf-dd5b-40db-8894-a203b9607e8a%40googlegroups.com?utm_medium=email&utm_source=footer
.
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/CAEYi1X8jTTpObh0B6KCDLoyhtgFMtxNeM4kscAjFbwkYTOU1AQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.