Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C506C18958 for ; Sat, 18 Jul 2015 11:59:27 +0000 (UTC) Received: (qmail 49619 invoked by uid 500); 18 Jul 2015 11:59:25 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 49563 invoked by uid 500); 18 Jul 2015 11:59:25 -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 49552 invoked by uid 99); 18 Jul 2015 11:59:25 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2015 11:59:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C50B8186A4E for ; Sat, 18 Jul 2015 11:59:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id w8aFCjEpxtvE for ; Sat, 18 Jul 2015 11:59:11 +0000 (UTC) Received: from mail.sd-datasolutions.de (serv2.sd-datasolutions.de [85.25.204.22]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 9AAD520604 for ; Sat, 18 Jul 2015 11:59:10 +0000 (UTC) Received: from VEGA (unknown [IPv6:2001:1a80:2b02:6a01:8e70:5aff:fed1:75a4]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id 69EC616F802DE for ; Sat, 18 Jul 2015 11:59:04 +0000 (UTC) X-NSA-Greeting: Dear NSA, have fun with reading and analyzing this e-mail! From: "Uwe Schindler" To: References: In-Reply-To: Subject: RE: Lucene segment selection strategy Date: Sat, 18 Jul 2015 13:59:03 +0200 Message-ID: <013701d0c151$244d1e90$6ce75bb0$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Content-Language: de Thread-Index: AQIRIPZBEm6KZQlHPG9RmW7XRMnU6gFjkCeAnVVDcjA= This can also not happen anymore in Lucene 5: The segments_xy files are = atomically renamed from a temporary file name to the final name as last = action of the commit. So the whole thing is safe now. See also my talk = about Java 7's NIO.2 on Berlinbuzzwords: = https://www.youtube.com/watch?v=3DmARACndILQc Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Michael McCandless [mailto:lucene@mikemccandless.com] > Sent: Saturday, July 18, 2015 12:43 AM > To: Lucene Users; cooney.geoff@gmail.com > Subject: Re: Lucene segment selection strategy >=20 > Curious ... Lucene should try to fallback to the older segments_N = files (even > if segments.gen points to the new, broken ones). >=20 > We've removed segments.gen as of 5.x and I think it's unlikely we'll = do > another 4.10.x release at this point, but maybe still open the issue = in case > others hit it? >=20 > Mike McCandless >=20 > http://blog.mikemccandless.com >=20 >=20 > On Fri, Jul 17, 2015 at 4:37 PM, Geoff Cooney > wrote: > > Hi, > > > > We recently had an issue with an index where two sequential aborted > > but unsuccessfully rolled back commits resulted in empty segments_n > > files, segments_i13p and segments_i13q in this case. This resulted = in > > an exception whenever we tried to open the index until we manually > > removed the bad segments_n files. > > > > Since the commits were never completed, segments.gen still pointed = to > > segments_i13o. But it looks like lucene takes the more recent > > generation it sees in the file list and never tries to open > > segments_i13o(which is openable/uncorrupted in this case). > > > > My questions is if this is something I should file as a bug? The > > index is stored in a remote key-value store. While I have a test = that > > recreates the issue with an NIOFSDirectory and artificially = generated > > exceptions, I'm not sure how likely it is that this scenario would > > actually occur with a local disk index. > > > > We are running lucene 4.3. > > > > Thanks, > > Geoff >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org