Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 9979 invoked from network); 30 Sep 2007 19:03:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Sep 2007 19:03:28 -0000 Received: (qmail 76587 invoked by uid 500); 30 Sep 2007 19:03:12 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 76545 invoked by uid 500); 30 Sep 2007 19:03:12 -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 76534 invoked by uid 99); 30 Sep 2007 19:03:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2007 12:03:12 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2007 19:03:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2FBE271421C for ; Sun, 30 Sep 2007 12:02:51 -0700 (PDT) Message-ID: <4344796.1191178971193.JavaMail.jira@brutus> Date: Sun, 30 Sep 2007 12:02:51 -0700 (PDT) From: "Hoss Man (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1011) Two or more writers over NFS can cause index corruption In-Reply-To: <884069.1191101810850.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531368 ] Hoss Man commented on LUCENE-1011: ---------------------------------- : In testing in my NFS area (mix of Linux & OS X), I see : NativeFSLockFactory sometimes (rarely) allowing a lock to be : double-acquired. Whereas after stress testing SimpleFSLockFactory for : a looong time, it never allows that. : : So the NFS challenge/saga continues: now, you should in fact use : SimpleFSLockFactory, and work around the fact that you will sometimes : have to manually remove lock files (it is the lesser of evils). i'm not an expert on file Locking (either in Lucene, or in the JVM, or any OSes) but i have to wonder if the problems you are seeing are inherent in the Java FileLock APIs, or if they only manifest in specific implementations (ie: certain JVM impls, certain filesystems, certain combinations of NFS client/server, etc...) if we can say "NativeFSLockFactory uses the Java FileLock API to provide locking. FileLock known to be buggy in the following situations: .... " then we've done all we can do, correct? > Two or more writers over NFS can cause index corruption > ------------------------------------------------------- > > Key: LUCENE-1011 > URL: https://issues.apache.org/jira/browse/LUCENE-1011 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 1.9, 2.0.0, 2.0.1, 2.1, 2.2, 2.3, 2.4, 2.9 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.3 > > Attachments: LUCENE-1011.patch > > > When an index is used over NFS, and, more than one machine can be a > writer such that they swap roles quickly, it's possible for the index > to become corrupt if the NFS client directory cache is stale. > Not all NFS clients will show this. Very recent versions of Linux's > NFS client do not seem to show the issue, yet, slightly older ones do, > and the latest Mac OS X one does as well. > I've been working with Patrick Kimber, who provided a standalone test > showing the problem (thank you Patrick!). This came out of this > thread: > http://www.gossamer-threads.com/lists/engine?do=post_view_flat;post=50680;page=1;sb=post_latest_reply;so=ASC;mh=25;list=lucene > Note that the first issue in that discussion has been resolved > (LUCENE-948). This is a new issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org