Why do you have 6 zookeepers listed in the zkHost parameter? My guess is that you've listed the ZK addresses for both the source and target clusters. This should only be the ZK nodes for the target cluster and only present on the source.
The source already knows its own ZK addresses, it needs to know about the target cluster in order to know what nodes it should send updates to. Best, Erick On Wed, Nov 9, 2016 at 4:44 AM, Neeraj Bhatt <neerajbhatt2...@gmail.com> wrote: > Hello All > > I have a source cluster (3 nodes, 3 shards and 3 replica) and same for > target cluster. On posting of documents to source I am getting below error > in target solr log files when i turned log to debug level > > > > > *6538 ERROR (qtp110456297-20) [c:multi_dc_poc s:shard1 r:core_node3 > x:multi_dc_poc_shard1_replica2] o.a.s.h.RequestHandlerBase > org.apache.solr.common.SolrException: Action LASTPROCESSEDVERSION sent to > non-leader replica at > org.apache.solr.handler.CdcrRequestHandler.handleLastProcessedVersionAction(CdcrRequestHandler.java:498)* > > *should I reconfigure my replicas to one in target ?* > > solr config of source and target is same as given in wiki > https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=62687462 > > *source * > > > > > > > > > > > > > > > > > > > > > *<requestHandler name="/cdcr" > class="solr.CdcrRequestHandler"> <lst > name="replica"> <str > name="zkHost">192.169.35.53:2181 > <http://192.169.35.53:2181>,192.169.35.249:2181 > <http://192.169.35.249:2181>,192.169.35.251:2181 > <http://192.169.35.251:2181> > </str> <str > name="source">multi_dc_poc</str> <str > name="target">multi_dc_poc</str> </lst> <lst > name="replicator"> <str > name="threadPoolSize">9</str> <str > name="schedule">1000</str> <str > name="batchSize">128</str> </lst> <lst > name="updateLogSynchronizer"> <str > name="schedule">1000</str> </lst> </requestHandler>* > > > > > > > > *source and target update log <updateLog > class="solr.CdcrUpdateLog"> <str > name="dir">${solr.ulog.dir:}</str> <int > name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int> > </updateLog>* > > > *target solr config* > > <requestHandler name="/cdcr" class="solr.CdcrRequestHandler"> > <lst name="buffer"> > <str name="defaultState">disabled</str> > </lst> > </requestHandler> > > <requestHandler name="/update" class="solr.UpdateRequestHandler"> > <lst name="defaults"> > <str name="update.chain">cdcr-processor-chain</str> > </lst> > </requestHandler> > > <updateRequestProcessorChain name="cdcr-processor-chain"> > <processor class="solr.CdcrUpdateProcessorFactory"/> > <processor class="solr.RunUpdateProcessorFactory"/> > </updateRequestProcessorChain> > > *target status* > > <response><lst name="responseHeader"><int name="status">0</int><int > name="QTime">0</int></lst><lst name="status"><str > name="process">stopped</str><str > name="buffer">disabled</str></lst></response> > > *source status* > > <response><lst name="responseHeader"><int name="status">0</int><int > name="QTime">0</int></lst><lst name="status"><str > name="process">started</str><str > name="buffer">enabled</str></lst></response>