Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 2163 invoked from network); 18 Nov 2004 14:58:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Nov 2004 14:58:27 -0000 Received: (qmail 73354 invoked by uid 500); 18 Nov 2004 14:57:59 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 73224 invoked by uid 500); 18 Nov 2004 14:57:58 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 73184 invoked by uid 99); 18 Nov 2004 14:57:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [141.156.69.115] (HELO mail.infosciences.com) (141.156.69.115) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 18 Nov 2004 06:57:46 -0800 Received: from Aviran (unknown [141.156.69.109]) by mail.infosciences.com (Postfix) with ESMTP id 2B3F8118308; Thu, 18 Nov 2004 09:55:23 -0500 (EST) From: "Aviran" To: "'Lucene Users List'" , "'John Wang'" Subject: RE: lucene transaction and roll back implementation Date: Thu, 18 Nov 2004 09:57:48 -0500 Message-ID: <002201c4cd7e$fae3e830$6a00a8c0@Aviran> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <8837fb77041117172562751621@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N AFIK there is no transaction not rollback support in lucene Aviran http://www.aviransplace.com -----Original Message----- From: John Wang [mailto:john.wang@gmail.com]=20 Sent: Wednesday, November 17, 2004 20:25 PM To: lucene-user@jakarta.apache.org Subject: lucene transaction and roll back implementation Hi folks: How does lucene implement transaction and roll back. E.g. if the = machine crashes (from power outage etc.) in the middle of a write, e.g. indexWriter.close()? From examining the code, seems that there is a possibility such crash can cause a corrupted index. (in segmentInfos, new data is written to a temp file and then swaps back = to the actual file by doing Util.renameFile, but Util.renameFile is not = atomic if we are doing a byte copy) Is there a automatic recovery mechansim or a roll back? What is a general advise for how to handle these situations? Thanks -John --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org