I'm having trouble with replication, and i believe it's because the indexversion isn't updating on master.

My solrconfig.xml on master:

 <requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
      <str name="replicateAfter">startup</str>
      <str name="replicateAfter">commit</str>
      <str name="replicateAfter">optimize</str>
      <!-- <str name="backupAfter">optimize</str> -->
<str name="confFiles">solrconfig- slave.xml:solrconfig.xml,schema.xml,stopwords.txt</str>
    </lst>
  </requestHandler>

  BTW, I am certain that this does NOT work:
      <str name="replicateAfter">startup,commit,optimize</str>
  it MUST be separate elements.


My solrconfig.xml on slave:

  <requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="slave">
      <str name="masterUrl">http://my_host:8983/solr/replication</str>
      <!--Format is HH:mm:ss -->
      <str name="pollInterval">00:15:00</str>
    </lst>
  </requestHandler>


/replication?command=details   on master:

(I don't understand why there are two indexVersion and two generation entries in this data)

<lst name="details">
  <str name="indexSize">19.91 GB</str>
  <str name="indexPath">/data/solr/index</str>
  <arr name="commits">
    <lst>
      <long name="indexVersion">1270535894533</long>
      <long name="generation">32</long>
      <arr name="filelist">
        <str>_1xv.fdt</str>
        ...
        <str>_1xv.frq</str>
        <str>segments_w</str>
      </arr>
    </lst>
  </arr>
  <str name="isMaster">true</str>
  <str name="isSlave">false</str>
  <long name="indexVersion">1270535894534</long>
  <long name="generation">33</long>
</lst>


master log shows the commit:

INFO: start commit (optimize=false,waitFlush=false,waitSearcher=true,expungeDeletes=false)
Apr 12, 2010 4:00:54 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening searc...@31dd7736 main
Apr 12, 2010 4:00:54 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
Apr 12, 2010 4:00:54 PM org.apache.solr.search.SolrIndexSearcher warm


but indexversion  is  the OLD one, not the NEW one:

<response>
  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">0</int>
  </lst>
  <long name="indexversion">1270535894533</long>
  <long name="generation">32</long>
</response>


What's going on?
- Naomi

Reply via email to