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 4D6F1C74B for ; Wed, 9 May 2012 09:38:59 +0000 (UTC) Received: (qmail 27161 invoked by uid 500); 9 May 2012 09:38:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 27111 invoked by uid 500); 9 May 2012 09:38:57 -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 27084 invoked by uid 99); 9 May 2012 09:38:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 09:38:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 09:38:51 +0000 Received: by wibhm4 with SMTP id hm4so1464146wib.5 for ; Wed, 09 May 2012 02:38:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=+T769c9IX/CjtZoSuXmlzbdOx6bGcF7t2aiu8n0TLZE=; b=ock5KNO3ui9wqS4zXETDXkl62v6pga7ix11VzwmzL0YpNsQ7UoV3DLWk1zdO/c0kRO Hva3kgZM2ULLGFyqQPg84RoBVKb6/xiP3lqr0cPtlaxsnlOY4dLw9KVSaqq+GaXJQjKW SAUTKMUchVnAdR9/C/mChaz9qaC5MUQKuEUE0w2Qrk+agwbkEYmz6hhk9Z5Kja/VRRgk 90aropI/FZtA159XOvbLmpfa1kvZDVvJm13nzGF1SqL5zTuPMk4C04q32CX+7FOvEtjy MEZZgD7Fenoq4ZX8+gXF9gzagbVAhWXBbmE7o9eMJMGrVW4jzwvo95ba/4TfqRbfm54c aefg== Received: by 10.180.79.72 with SMTP id h8mr5314723wix.1.1336556309539; Wed, 09 May 2012 02:38:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.4.79 with HTTP; Wed, 9 May 2012 02:38:09 -0700 (PDT) In-Reply-To: References: From: Michael McCandless Date: Wed, 9 May 2012 05:38:09 -0400 Message-ID: Subject: Re: IndexWriter.isLock() To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnZ5kXgXHN9CK91mxwBLBwAGjnisXabso2TM0WX9WyNZqrDiakpILUOx5VoknUqIWGNkyaC X-Virus-Checked: Checked by ClamAV on apache.org On Tue, May 8, 2012 at 12:31 AM, S Eslamian wrote: > So if my program interrupts, the lock files in the indexes will be released > in the next run. hoom? If you use NativeFSLockFactory (which is the default for NIOFSDirectory) then, yes, the lock is always released by the OS when the process exits. > That's so good. Thank you Mr.McCandless for your help. You're welcome! Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org