Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 72528 invoked from network); 6 Sep 2010 13:23:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Sep 2010 13:23:17 -0000 Received: (qmail 44639 invoked by uid 500); 6 Sep 2010 13:23:16 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 44145 invoked by uid 500); 6 Sep 2010 13:23:13 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 44138 invoked by uid 99); 6 Sep 2010 13:23:12 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Sep 2010 13:23:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Sep 2010 13:22:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o86DMWq6002636 for ; Mon, 6 Sep 2010 13:22:33 GMT Message-ID: <16243783.40241283779352970.JavaMail.jira@thor> Date: Mon, 6 Sep 2010 09:22:32 -0400 (EDT) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-2100) Fix for saving commit points during java-based backups In-Reply-To: <17349373.16181283538814173.JavaMail.jira@thor> 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-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906505#action_12906505 ] Yonik Seeley commented on SOLR-2100: ------------------------------------ bq. but will it still save the commit point for replication even if another commit (or many commits) come along during replication? Yes.... that's what the reservation system is for. When someone asks us for the current index version, we reserve that version for some amount of time and return that. When the client is retrieving a file, they also specify what index version it is for so we can periodically renew the reservation during streaming back. If we didn't use a reservation system, a client could ask for the index version, die, and then we would save it forever. > Fix for saving commit points during java-based backups > ------------------------------------------------------ > > Key: SOLR-2100 > URL: https://issues.apache.org/jira/browse/SOLR-2100 > Project: Solr > Issue Type: Bug > Components: replication (java) > Affects Versions: 1.4, 1.4.1 > Reporter: Peter Sturge > Priority: Minor > Fix For: 1.4.2 > > Attachments: SOLR-2100.PATCH > > Original Estimate: 0h > Remaining Estimate: 0h > > This patch fixes the saving of commit points during backup operations. > This fixes the perviously commited (for 1.4) SOLR-1475 patch. > 1. In IndexDeletionPolicyWrapper.java, commit points are not saved to the 'savedCommits' map. > 2. Also, the testing of the presence of a commit point uses the contains() method instead of containsKey(). > The result of this means that backups for anything but toy indexes fail, because the commit points are deleted (after 10s) before the full backup is completed. > This patch addresses these 2 issues. > Tested with 1.4.1 release trunk, but should also work fine with 1.4. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org