Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 5603 invoked from network); 14 Aug 2009 18:48:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 18:48:10 -0000 Received: (qmail 87780 invoked by uid 500); 14 Aug 2009 18:48:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 87696 invoked by uid 500); 14 Aug 2009 18:48:15 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 87686 invoked by uid 99); 14 Aug 2009 18:48:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 18:48:15 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nazario.lucas@gmail.com designates 209.85.222.186 as permitted sender) Received: from [209.85.222.186] (HELO mail-pz0-f186.google.com) (209.85.222.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 18:48:07 +0000 Received: by pzk16 with SMTP id 16so1157040pzk.20 for ; Fri, 14 Aug 2009 11:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=qSRUAgcx0VBzGb4YrIRvjzrYseQUrmfChtWyDEfNjLw=; b=GaYfRHEodSTCSZLsdinCeYey2yxhFTLW/yx3PPXUp/zBnVNg51+rCD957Gmti2rD6R GKmIbMqA96MGYj7sEubZTZwE3tutKj3kkHUjeLhPceChBhWKXeCxXJ6O79HvjlkTC1So jQRzAKwgloiox1N8+KRr5kMX6VTjkSjBkOsfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P9JWYh2ZI8KucWFVvKmbg22XRW1k/A341PVIglKd3fzRW230P6EOAo4GKqNOghmlVw BLvcobpM+zcbQi5LBn2cJb4OXeDx7BJDjzx00k8MC/Twg+2TtrI/SH7BAy9gXbUrYCEp bysI6ThCeSR5+9VygzgH5AGpCFgsqQ16YsTQM= MIME-Version: 1.0 Received: by 10.115.88.19 with SMTP id q19mr2045000wal.81.1250275666381; Fri, 14 Aug 2009 11:47:46 -0700 (PDT) Date: Fri, 14 Aug 2009 15:47:46 -0300 Message-ID: <3ca1516d0908141147i1baf7af2yf15bcf69d4af77dc@mail.gmail.com> Subject: Problem doing backup using the SnapshotDeletionPolicy class From: =?ISO-8859-1?Q?Lucas_Naz=E1rio_dos_Santos?= To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00163646c116f7631004711e7c7b X-Virus-Checked: Checked by ClamAV on apache.org --00163646c116f7631004711e7c7b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I'm using the SnapshotDeletionPolicy class to backup my index. I basically call the snapshot() method from the class SnapshotDeletionPolicy at some point, get a list of files that changed, copy then to the backup folder, and finish by calling the release() method. The problem arises when, in between backups, I optimize the index by opening it with the IndexWriter class and calling the optimize() method. When I don't optimize in between backups, here is what happens: The first backup copies the segment composed by the files _0.cfs and segments_2. The second backup copies the files _1.cfs and segments_3, and the third backup copies the files _2.cfs e segments_4. I can open the backup folder with Luke without problems. When I do optimize in between backups, the copies are as follow: The first backup copies the segment composed by the files _0.cfs and segments_2. The second backup copies the files _1.cfs and segments_3, and the third backup copies the files _3.cfs e segments_5. In this case, when I try to open the backup folder, Luke gives a message saying that it can't find the file _2.cfs. My question is: how can I backup my index using the SnapshotDeletionPolicy and having to optimize the index in between backups? Am I using the right backup strategy? Thanks, Lucas --00163646c116f7631004711e7c7b--