Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 65252 invoked from network); 19 Mar 2008 13:59:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2008 13:59:20 -0000 Received: (qmail 89244 invoked by uid 500); 19 Mar 2008 13:59:09 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89214 invoked by uid 500); 19 Mar 2008 13:59:09 -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 89200 invoked by uid 99); 19 Mar 2008 13:59:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 06:59:09 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 72.14.220.157 as permitted sender) Received: from [72.14.220.157] (HELO fg-out-1718.google.com) (72.14.220.157) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 13:58:31 +0000 Received: by fg-out-1718.google.com with SMTP id d23so367708fga.27 for ; Wed, 19 Mar 2008 06:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=PKkHRT/beYyunucCxRL1QQ+PFbqPWwl2G5jtvfps+KY=; b=oG8br6Am9GVoyHck8Rl4Gl9bcRiEjzPwRc1LGulRL3L9CP9yOPIrFa80EgQtqI9i06aPhQZ7wfhjo4BhkmogdaiQWlOol1KbG8LwHWgP/oesdP2+ZvlpLI+UQNWLBq47QfTQh9JCXKCxMOVNIBwTAzQSPXutptyG7jNFIXk8OyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pf+PuefYBobPYnbDZqUZNo/MjoxyGqaWbwvs/z9AoY0Vl0znExOU8jnDT2TPT5Y7UNCoV17Tv1/2URZpU7V8UcXfw5MEcK4KF2pEG777DtuS0zeAtMEfIvs0ocAMwz9vh3KGsthF0y6DX1ZxIidH9x+zmGBqHer3co8afudUXAI= Received: by 10.82.124.10 with SMTP id w10mr778346buc.18.1205935117567; Wed, 19 Mar 2008 06:58:37 -0700 (PDT) Received: by 10.82.151.7 with HTTP; Wed, 19 Mar 2008 06:58:37 -0700 (PDT) Message-ID: <359a92830803190658y52e6f007v1d6a75af94511bae@mail.gmail.com> Date: Wed, 19 Mar 2008 09:58:37 -0400 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: Multi process writer access to an index In-Reply-To: <74f928500803190654j61cd6ebcg117547f22783472d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16928_28865446.1205935117555" References: <74f928500803190654j61cd6ebcg117547f22783472d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_16928_28865446.1205935117555 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You'll get more meaningful answers if you provide some details: Things that come to mind: op system (windows? *nix?) file system (NFS? local? NTFS?) An example of the error you receive (a stack trace would be good). The code you're executing when you get the error. Imagine you're trying to advise someone else and think about what you'd find useful and try to provide that, please. Best Erick On Wed, Mar 19, 2008 at 9:54 AM, Eran Sevi wrote: > Hi, > > > I'm trying to write to a specific index from several different processes > and > encounter problems with locked files (deletable for example). > > I don't perform any specific locking because as I understand it there > should > be file-specific locking mechanism used by lucene API. This doesn't seem > to > be working as I am able to instantiate an IndexWriter on the same index > simultaneously, but I encounter problems when I try to close/optimize it . > > > > Please help me understand if lucene doesn't support this kind of access, > and > what's the proper way to write to the same index from two or more > different > processes/computers. > > > > Thanks, > > Eran S. > ------=_Part_16928_28865446.1205935117555--