disable autocommit on the target It worked! thanks
2016-05-30 15:40 GMT+07:00 Renaud Delbru <renaud@siren.solutions>: > Hi Adam, > > could you check the response of the monitoring commands [1], QUEUES, > ERRORS, OPS. This might help undeerstanding if documents are flowing or if > there are issues. > > Also, do you have an autocommit configured on the target ? CDCR does not > replicate commit, and therefore you have to send a commit command on the > target to ensure that the latest replicated documents are visible. > > [1] > https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=62687462#CrossDataCenterReplication%28CDCR%29-Monitoringcommands > > -- > Renaud Delbru > > > On 29/05/16 12:10, Adam Majid Sanjaya wrote: > >> I’m testing Solr 6 CDCR, but it’s seems not working. >> >> Source configuration: >> <requestHandler name="/cdcr" class="solr.CdcrRequestHandler"> >> <lst name="replica"> >> <str name="zkHost">targetzkip:2181</str> >> <str name=“Source">corehol</str> >> <str name=“Target">corehol</str> >> </lst> >> >> <lst name="replicator"> >> <str name="threadPoolSize">1</str> >> <str name="schedule">1000</str> >> <str name="batchSize">128</str> >> </lst> >> >> <lst name="updateLogSynchronizer"> >> <str name="schedule">5000</str> >> </lst> >> </requestHandler> >> >> <updateHandler class="solr.DirectUpdateHandler2"> >> <updateLog class="solr.CdcrUpdateLog"> >> <str name="dir">${solr.ulog.dir:}</str> >> </updateLog> >> </updateHandler> >> >> Target(s) configuration: >> <requestHandler name="/cdcr" class="solr.CdcrRequestHandler"> >> <lst name="buffer"> >> <str name="defaultState">disabled</str> >> </lst> >> </requestHandler> >> >> <updateRequestProcessorChain name="cdcr-proccessor-chain"> >> <processor class="solr.CdcrUpdateProcessorFactory"/> >> <processor class="solr.RunUpdateProcessorFactory"/> >> </updateRequestProcessorChain> >> >> <requestHandler name="/update" class="solr.UpdateRequestHandler"> >> <lst name="defaults"> >> <str name="update.chain">cdcr-proccessor-chain</str> >> </lst> >> </requestHandler> >> >> <updateHandler class="solr.DirectUpdateHandler2"> >> <updateLog class="solr.CdcrUpdateLog"> >> <str name="dir">${solr.ulog.dir:}</str> >> </updateLog> >> </updateHandler> >> >> Source Log: no cdcr >> Target Log: no cdcr >> >> Create a core (solrconfig.xml modification directly from the folder >> data_driven_schema_configs): >> #bin/solr create -c corehol -p 8983 >> >> Start cross-data center replication by running the START command on the >> source data center >> http://sourceip::8983/solr/corehol/cdcr?action=START >> >> Disable buffer by running the DISABLEBUFFER command on the target data >> center >> http://targetip::8983/solr/corehol/cdcr?action=DISABLEBUFFER >> >> The documents are not replicated to the target zone. >> >> What should I examine? >> >> >