Re: SolrCloud 5.2.1 nodes are out of sync - how to handle

2016-06-06 Thread Erick Erickson
Sure, the routing doesn't matter to the ADDREPLICA command, you give it a shard ID. I'm more worried about how the nodes got out of sync in the first place. Are _both_ Solr noded on a particular machine out of sync? And what is the evidence that they are? You can issue something like

Re: SolrCloud 5.2.1 nodes are out of sync - how to handle

2016-06-02 Thread Ilan Schwarts
In my question i confusef you, there are 2 shards and 2 nodes on each shard, one leader and one not. When created the collection num of shards was 2 and replication factor was 2. Now the status is shard 1 has 2 out of sync nodes, so it is needed to merge/sync them. Do you still suggest same? Add

Re: SolrCloud 5.2.1 nodes are out of sync - how to handle

2016-06-02 Thread Erick Erickson
A pedantic nit... leader/replica is not much like "old master/slave". That out of the way, here's what I'd do. 1> use the ADDREPLICA to add a new replica for the shard _on the same node as the bad one_. 2> Once that had recoverd (green in the admin UI) and you were confident of its

SolrCloud 5.2.1 nodes are out of sync - how to handle

2016-06-01 Thread Ilan Schwarts
Hi, We have in lab SolrCloud 5.2.1 2 Shards, each shard has 2 cores/nodes, replication factor is 1. meaning that one node is leader (like old master-slave). (upon collection creation numShards=1 rp=1) Now there is a problem in the lab, shard 1 has 2 cores, but the number of docs is different, and