Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 61914 invoked from network); 14 Jul 2006 11:30:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jul 2006 11:30:19 -0000 Received: (qmail 56570 invoked by uid 500); 14 Jul 2006 11:30:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 56543 invoked by uid 500); 14 Jul 2006 11:30:12 -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 56532 invoked by uid 99); 14 Jul 2006 11:30:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2006 04:30:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.92.45.238] (HELO noidagw01.naukri.com) (203.92.45.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2006 04:30:11 -0700 Received: from [192.168.0.107] ([192.168.0.107]) by noidagw01.naukri.com (8.13.4/8.13.4) with ESMTP id k6EBLrnE029859 for ; Fri, 14 Jul 2006 16:52:03 +0530 Message-ID: <44B78020.7040403@naukri.com> Date: Fri, 14 Jul 2006 16:59:36 +0530 From: Kapil Chhabra User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: FileNotFoundException: occurs during the optimization of index References: <44B77D6C.3080501@artnology.com> In-Reply-To: <44B77D6C.3080501@artnology.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You may try to update a copy of the index and then either replace the live index with the updated one or instruct other instances to update the index path. You may try this scenario if your index size is manageable. Hope this helps. Regards, kapilChhabra Supriya Kumar Shyamal wrote: > I have common index which is shared by 6 application server through > nfs. I use only one instance to maintain the index. other instances > shares the index with readpnly nfs share so that I make sure the > search instances does not corrupt the index. I do the index > optimization everyday at 6:00 at that time I get the > FileNotFoundException from the search log of the other instances. > > I can imagine the problem like when the optimzation happens on the > index at the same time some IndexSearcher is object is created for the > search but before search is invoked the IndexWriter optimized the file > so the segment list there on the IndexSearcher object is not there. > > Can anybody suggest how to avoid this problem and concurrently access > in the index accroos the network at the same time maintaining the index. > > Thanks, > supriya > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org