Not quite. When you add replica 3, it will be synchronized to the leader. So I'd shut down the solr node with the bad replica, add the new replica and then delete the old one.
The disturbing bit is that the replicas for out of sync in the first place. Anything in the logs that gives any clues as to why? Best, Erick On Oct 14, 2016 18:32, "Davide Isoardi" <isoa...@ecubecenter.it> wrote: > I am sorry for my typos. I have compared numdocs of shard1_replica1 with > shard1_replica2. > > If I create another replica (replica3) and only after that I unload > replica2, will the last replica be synchronized with replica1? > > Inviata dal mio Windows Phone > ________________________________ > Da: Shawn Heisey<mailto:apa...@elyograg.org> > Inviato: 14/10/2016 18:33 > A: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> > Oggetto: Re: R: Incongruent results of numdocs > > On 10/14/2016 9:43 AM, Davide Isoardi wrote: > > > > thank you very much for the quick answare. > > > > > > > > Yes, I am not indexing between request. > > > > > > > > How can I risync two or all replicas? > > > > If I look the overviews in the shard menu (attached the screenshot) I > > see that the num docs are mismatched. > > > > > > > > Shard1_replica1 > > > > > > Shard2_replica2 > > > > I can't see those pictures, the attachments didn't make it. You seem to > be comparing shard1 and shard2. That's not a valid comparison. There's > a very good chance that different shards will have different document > counts even if everything is working correctly. You need to compare > replicas of shard1 to other replicas of shard1, shard2 to shard2, etc. > They'll likely be on different servers. > > Probably the best way to force a resync is to shutdown a Solr instance, > decide which replicas you want to delete on that instance, delete the > data directory for those replicas, and start Solr back up. Any replica > where you delete the data directory will copy the index from the shard > leader, and they'll be back in sync when the copy finishes. Before you > do this, make sure that you actually do have multiple replicas of each > shard. > > Thanks, > Shawn > >