Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 80435 invoked from network); 13 Aug 2009 06:36:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Aug 2009 06:36:37 -0000 Received: (qmail 84539 invoked by uid 500); 13 Aug 2009 06:36:43 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 84464 invoked by uid 500); 13 Aug 2009 06:36:43 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 84454 invoked by uid 99); 13 Aug 2009 06:36:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 06:36:43 +0000 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 06:36:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E889229A0012 for ; Wed, 12 Aug 2009 23:36:14 -0700 (PDT) Message-ID: <1231750112.1250145374951.JavaMail.jira@brutus> Date: Wed, 12 Aug 2009 23:36:14 -0700 (PDT) From: "Noble Paul (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Updated: (SOLR-1315) new replication command needed to force a backup when there is no committed index data In-Reply-To: <812893164.1248823515236.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Noble Paul updated SOLR-1315: ----------------------------- Attachment: SOLR-1315.patch So there is no command, the same command should create a snapshot irrespective of whether a commit /optimize has happened or not > new replication command needed to force a backup when there is no committed index data > -------------------------------------------------------------------------------------- > > Key: SOLR-1315 > URL: https://issues.apache.org/jira/browse/SOLR-1315 > Project: Solr > Issue Type: New Feature > Components: replication (java) > Affects Versions: 1.4 > Environment: Mac OS > Reporter: Jay > Assignee: Noble Paul > Priority: Minor > Fix For: 1.4 > > Attachments: SOLR-1315.patch > > Original Estimate: 5h > Remaining Estimate: 5h > > Here is an email describing the problem, and a possible solution. > I agree. I think both options could be useful - perhaps a 'forceBackup' as > well? Documentation would take care of the rest. Have you added this info to > the wiki yet? > -- > - Mark > http://www.lucidimagination.com > On Thu, Jul 23, 2009 at 12:56 PM, solr jay wrote: > > Hi, > > > > I noticed that the backup request > > > > http://master_host:port/solr/replication?command=backup< > > http://master_host/solr/replication?command=backup> > - Hide quoted text - > > > > works only if there are committed index data, i.e. > > core.getDeletionPolicy().getLatestCommit() is not null. Otherwise, no > > backup > > is created. It sounds logical because if nothing has been committed since > > your last backup, it doesn't help much to do a new backup. However, > > consider > > this scenario: > > > > 1. a backup process is scheduled at 1:00AM every Monday > > 2. just before 1:00AM, the system is shutdown (for whatever reason), and > > then restarts > > 3. No index is committed before 1:00AM > > 4. at 1:00AM, backup process starts and no committed index is found, and > > therefore no backup (until next week) > > > > The probability of this scenario is probably small, but it still could > > happen, and it seems to me that if I want to backup index, a backup should > > be created whether there are new committed index or not. > > > > Your thoughts? > > > > Thanks, -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.