I was reading some ES 
doco<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-reroute.html>and
 stumbled upon this part of the Cluster Reroute API:

allocate:
     "*Allocate an unassigned shard to a node. .... It also accepts the 
"allow primary" flag to explicitly specify that it is allowed to explicitly 
allocate a primary shard (might result in data loss)."*


Why might this result in data loss?

If I use:

POST /_cluster/reroute 
{
    "commands" : [ {
        "cancel" :
            {
              "index" : "myindex", "shard" : 4, "node": "somenode", 
"allow_primary":"true"
            }
        }
    ]
}


To get a node that has unallocated shards back to green, how will I know if 
data loss has occured?
How/why is the data being lost?

Thanks, 
Mark

-- 
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/0829b11c-d18a-4f6e-9cf4-67a94fd55daa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to