You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Armando Orlando (JIRA)" <ji...@apache.org> on 2016/07/22 15:07:20 UTC

[jira] [Created] (SOLR-9329) [SOLR][5.5.1] ReplicateAfter optimize is not working

Armando Orlando created SOLR-9329:
-------------------------------------

             Summary: [SOLR][5.5.1] ReplicateAfter optimize is not working
                 Key: SOLR-9329
                 URL: https://issues.apache.org/jira/browse/SOLR-9329
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 5.5.1
            Reporter: Armando Orlando


We just upgraded Solr version from 3.6 to 5.5.1 but the replication does not seem to work as expected. We would like to replicate index on slaves only after optimize but what I noticed is that if I restarted solr master it lost the info related to last replicable index and calling /replication?command=invexversion is getting the last committed index not the last optimized one.
If I leave it running, after first optimize command happen it works as expected and command=invexversion give me last optimized index.
We're running it as docker container.

This is the requestHandler section we're using in both master and slaves:
{code}
 <requestHandler name="/replication" class="solr.ReplicationHandler">
        <lst name="master">
            <str name="enable">${solr.master.enable:false}</str>
            <str name="replicateAfter">optimize</str>
            <str name="backupAfter">optimize</str>
        </lst>
        <str name="maxNumberOfBackups">${solr.numberOfVersionToKeep:3}</str>
        <lst name="slave">
            <str name="enable">${solr.slave.enable:false}</str>
            <str name="masterUrl">${solr.master.url:}/replication</str>
            <str name="pollInterval">${solr.replication.pollInterval:00:00:30}</str>
        </lst>
    </requestHandler>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org