Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 58467 invoked from network); 21 Sep 2005 12:51:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2005 12:51:34 -0000 Received: (qmail 30894 invoked by uid 500); 21 Sep 2005 12:51:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 30636 invoked by uid 500); 21 Sep 2005 12:51:27 -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 30623 invoked by uid 99); 21 Sep 2005 12:51:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 05:51:27 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_20_30,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of shoren@gmail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO zproxy.gmail.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 05:51:36 -0700 Received: by zproxy.gmail.com with SMTP id i28so889941nzi for ; Wed, 21 Sep 2005 05:51:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=Cm8jepDDZ31hwsn8INflSv7fzZ9HsAzgwacQbjgwlNmrxnXefjG4N5vDqjo7zCDSSaAuBgCNrOtriLSpgm0XZgawzirJsH9xDc4Wk0/OvP8pWhOU96UneMUp2nOwOSJ6T5s+c9FhFVCtKWRPlqOXqBaWsIYFx9fK/0is7RpiEPs= Received: by 10.36.61.9 with SMTP id j9mr4422458nza; Wed, 21 Sep 2005 05:51:06 -0700 (PDT) Received: by 10.36.80.8 with HTTP; Wed, 21 Sep 2005 05:51:06 -0700 (PDT) Message-ID: Date: Wed, 21 Sep 2005 14:51:06 +0200 From: Oren Shir Reply-To: shoren@alum.cs.huji.ac.il To: java-user@lucene.apache.org, john.wang@gmail.com Subject: Re: Stale NFS file handle Exception In-Reply-To: <8837fb7705092018187dac5e61@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_289_29348040.1127307066212" References: <4325E92E.4040707@insideview.com> <8837fb7705092018187dac5e61@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_289_29348040.1127307066212 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, There is an issue with file locking and NFS, which requirs setting some system property for lock files directory that must be local. Might be relevant. Oren On 9/21/05, John Wang wrote: > > How do you "update" the index? > > -John > > On 9/12/05, Harini Raghavan wrote: > > > > Hi All, > > I have 2 servers in the production environment, one running some Quartz > > jobs and the other one running the application. There is a common NFS > > mount which has the lucene index directory. The jobs fetch the latest > > data and update the lucene index. And the user can search on the index > > to retrieve documents. When I search on the index on nfs while the jobs > > are being run, I get the following exception : > > > > java.io.IOException: Stale NFS file handle > > at java.io.RandomAccessFile.readBytes(Native Method) > > at java.io.RandomAccessFile.read(RandomAccessFile.java:315) > > at > > org.apache.lucene.store.FSInputStream.readInternal(FSDirectory.java:420= ) > > at org.apache.lucene.store.InputStream.readBytes(InputStream.java:61) > > at > > org.apache.lucene.index.CompoundFileReader$CSInputStream.readInternal( > > CompoundFileReader.java:220) > > at org.apache.lucene.store.InputStream.refill(InputStream.java:158) > > at org.apache.lucene.store.InputStream.readByte(InputStream.java:43) > > at org.apache.lucene.store.InputStream.readVInt(InputStream.java:83) > > at > > org.apache.lucene.index.SegmentTermEnum.readTerm(SegmentTermEnum.java > :142) > > at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java > :115) > > at > > org.apache.lucene.index.TermInfosReader.scanEnum(TermInfosReader.java > :143) > > at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:137= ) > > at org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:51= ) > > at org.apache.lucene.index.MultiTermDocs.termDocs(MultiReader.java:409) > > at org.apache.lucene.index.MultiTermDocs.read(MultiReader.java:377) > > > > Can I have the index directory on a common nfs mount? Does lucene > > support this? > > Any help would be greatly appreciated. > > Thank you, > > Harini > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > ------=_Part_289_29348040.1127307066212--