Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 76862 invoked from network); 11 Sep 2006 17:14:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 17:14:08 -0000 Received: (qmail 8573 invoked by uid 500); 11 Sep 2006 17:14:06 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 8540 invoked by uid 500); 11 Sep 2006 17:14:05 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 8529 invoked by uid 99); 11 Sep 2006 17:14:05 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 10:14:05 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=paul.elschot@xs4all.nl; spf=permerror X-ASF-Spam-Status: No, hits=0.1 required=5.0 tests=FORGED_RCVD_HELO Received-SPF: error (idunn.apache.osuosl.org: domain xs4all.nl from 194.109.24.37 cause and error) Received: from ([194.109.24.37:3020] helo=smtp-vbr17.xs4all.nl) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 13/60-25916-56995054 for ; Mon, 11 Sep 2006 10:14:15 -0700 Received: from k8l.lan (porta.xs4all.nl [80.127.24.69]) by smtp-vbr17.xs4all.nl (8.13.6/8.13.6) with ESMTP id k8BHE0rT075806 for ; Mon, 11 Sep 2006 19:14:01 +0200 (CEST) (envelope-from paul.elschot@xs4all.nl) From: Paul Elschot To: java-dev@lucene.apache.org Subject: Re: After kill -9 index was corrupt Date: Mon, 11 Sep 2006 19:13:59 +0200 User-Agent: KMail/1.8.2 References: <4504ACA4.6090309@manawiz.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609111914.00062.paul.elschot@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Monday 11 September 2006 15:36, Yonik Seeley wrote: > On 9/10/06, Chuck Williams wrote: > > Could a kill -9 prevent data from reaching disk for files that were > > previously closed? > > No. After a close() the OS should have all the data... the process > may be killed but the OS will eventually flush all the buffers, etc. > File creation is pretty much always synchronous so I have no idea how > your problem could have happened (missing segment files). IO error or > something else temporarily filling up the disk? "Pretty much always" is logically equivalent to "not always" :) , see also below. > If you have a power loss or crash, then that *can* cause data loss. > There may be mount options to make more file operations synchronous, > or you could maybe write your own Directory implementation to make > things more synchronous. New segments will have to be flushed/fsynced before the segments file. This could be hidden in a Directory in case a Directory hides Lucene's segments file. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org