[ 
https://issues.apache.org/jira/browse/SOLR-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187047#comment-13187047
 ] 

James Dyer commented on SOLR-3033:
----------------------------------

Torsten,

I think for this to work you need to put the "numberToKeep" parameter in the 
request URL, not in the configuration file.  I realize this is counterintuitive 
because most request handlers let you specify parameters either way.  I think 
the reason it doesn't work in the config file might be because you've got to 
nest parameters within the <lst name="master" /> element.   So try putting this 
in the url and see if that works for you.

In any case, I'm thinking the only thing to do for this is perhaps clarify this 
point in the wiki.  Even if we could fix this, it wouldn't be appropriate to 
put this parameter is every replication request as typically you'd use the same 
handler for both replication and backups, and this one applies to backups only. 
 Anyone have any thoughts about this?
                
> numberToKeep on replication handler does not work - snapshots are increasing 
> beyond configured maximum
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3033
>                 URL: https://issues.apache.org/jira/browse/SOLR-3033
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>    Affects Versions: 3.5
>         Environment: openjdk 1.6, linux 3.x
>            Reporter: Torsten Krah
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to