Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3033

"numberToKeep" on replication handler does not work with "backupAfter"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: replication (java)
    • Labels:
      None
    • Environment:

      openjdk 1.6, linux 3.x

      Description

      Configured my replication handler like this:

      <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="confFiles">elevate.xml,schema.xml,spellings.txt,stopwords.txt,stopwords_de.txt,stopwords_en.txt,synonyms_de.txt,synonyms.txt</str>
      <str name="backupAfter">optimize</str>
      <str name="numberToKeep">1</str>
      </lst>
      </requestHandler>

      So after optimize a snapshot should be taken, this works. But numberToKeep is ignored, snapshots are increasing with each call to optimize and are kept forever. Seems this settings have no effect.

        Attachments

        1. SOLR-3033-failingtest.patch
          13 kB
          Tomás Fernández Löbbe
        2. SOLR-3033.patch
          8 kB
          James Dyer
        3. SOLR-3033.patch
          9 kB
          James Dyer

          Activity

            People

            • Assignee:
              jdyer James Dyer
              Reporter:
              tkrah Torsten Krah
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: