[ https://issues.apache.org/jira/browse/SOLR-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627770#action_12627770 ]
Shalin Shekhar Mangar commented on SOLR-617: -------------------------------------------- We have two options: # Do not reserve a commit point -- If it gets deleted due to a newer commit, let an in-flight replication fail so that the slave re-polls and gets a fresher commit point. # Let an in-flight replication reserve a commit point -- The slave would start another replication immediately after the previous one because the master now has a newer commit point that what it had just pulled. I'm more in favor of the first approach. Here, the onus of keeping a commit point for reliable replication will fall on the user supplying configuration according to his commit frequency (the maxAge condition will be handy). Also, wouldn't implementing a reserve method limit us to only the default SolrDeletionPolicy? > Allow configurable deletion policy > ---------------------------------- > > Key: SOLR-617 > URL: https://issues.apache.org/jira/browse/SOLR-617 > Project: Solr > Issue Type: New Feature > Components: search, update > Affects Versions: 1.4 > Reporter: Noble Paul > Assignee: Shalin Shekhar Mangar > Priority: Minor > Fix For: 1.4 > > Attachments: 617.patch, solr-617.patch > > > Lucene API provides means to configure deletion policy. Solr should be able > to expose it through configuration in solrconfig.xml. Moreover the new > replication (SOLR-561) strategy is going to rely on this . > I propose the configuration go into the <mainIndex> section > sample configuration > {code:xml|title=solrconfig.xml} > <mainIndex> > <!-- configure deletion policy here--> > <deletionPolicy> > <!-- Store only the commits with optimize.Non optimized commits will > get deleted by lucene when > the last IndexWriter/IndexReader using this commit point is > closed --> > <keepOptimizedOnly>true</keepOptimizedOnly> > <!--Maximum no: of commit points stored . Older ones will be cleaned > when they go out of scope--> > <maxCommitsToKeep></maxCommitsToKeep> > <!-- max age of a stored commit--> > <maxCommitAge></maxCommitAge> > </deletionPolicy> > > </mainIndex> > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.