Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 21620 invoked from network); 25 Nov 2009 15:45:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 15:45:00 -0000 Received: (qmail 17466 invoked by uid 500); 25 Nov 2009 15:44:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 17394 invoked by uid 500); 25 Nov 2009 15:44:58 -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 17384 invoked by uid 99); 25 Nov 2009 15:44:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 15:44:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ian.lea@gmail.com designates 209.85.220.224 as permitted sender) Received: from [209.85.220.224] (HELO mail-fx0-f224.google.com) (209.85.220.224) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 15:44:50 +0000 Received: by fxm24 with SMTP id 24so4801928fxm.11 for ; Wed, 25 Nov 2009 07:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=TYZ79AJ5OralIbN4q8HQW2IuBIgkU8Lx4jRCKAiglRk=; b=XB685mZPE0AjqzwfGPDsBBmmgb2k60t8A8FOTmGP8vKGduYBnEiFI37b0eYez93C3T 6B+M6nb3GsaKULpx4pu5XuOq1zkViVueFqE59FE+BMZiH4RtkWy+ZMcLBCVgAh6/4Xbn IFB6kA/OZaNS/ibU2grz11Pv+nlG5qfomoXfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=elMT3KIe4c5cdbdRiju8TgmpjGU6FbVoZnI3L3hR1gH2W0slLhA9HWc0T097KshOLW iTpzwfO8iy7996AKenQKIJRD6x+d5LDLbs4JtNI2/0QDslstHC0wXt6sICDOOSe739n7 eW2vW+6o+5JfMh8OzRVLuQk0BAodvdI/Ti+sM= MIME-Version: 1.0 Received: by 10.223.5.18 with SMTP id 18mr1187651fat.58.1259163870162; Wed, 25 Nov 2009 07:44:30 -0800 (PST) In-Reply-To: <3836ec640911250737p8128f37nb7e92b408ef46cc2@mail.gmail.com> References: <7ac523660911250713r6c6942f0vc1d044a4a503140a@mail.gmail.com> <8c4e68610911250731v1a62f3d8s6d22e311310a8a43@mail.gmail.com> <3836ec640911250737p8128f37nb7e92b408ef46cc2@mail.gmail.com> From: Ian Lea Date: Wed, 25 Nov 2009 15:44:10 +0000 Message-ID: <8c4e68610911250744l15173a9al5d7f0680b62e481a@mail.gmail.com> Subject: Re: best way to ensure IndexWriter won't corrupt the index? To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Yes, good point. Messing around with lucene locking may well be a way to get corrupt indexes. Any others? -- Ian. On Wed, Nov 25, 2009 at 3:37 PM, Max Lynch wrote: > On Wed, Nov 25, 2009 at 9:31 AM, Ian Lea wrote: > >> > What are the typical scenarios when the index will go corrupt? >> >> Dodgy disks. >> > > I also have had index corruption on two occasions. =A0It is not a big dea= l for > me since my data is fairly real time so the old documents aren't as > important. > > However, I'm running this on a VPS with slicehost, so whether or not they > use dodgy disks is not something I can confirm or even deal with. > > I do need to upgrade to 2.9 from 2.4, but I think one of the reasons for = my > index corruption is deleting the index.write file rather than removing th= e > lock through the Lucene APIs. =A0This seems like it could be a cause of > corruption, correct? --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org