DIGY,

Its an interesting observation from you :) Did you assume that Laxmilal 
downloaded and used MinalyzerLite by looking at his signature?

I made that announcement to the list and I and Laxmilal work in the same team. 
We are seeing such JVM crashes in Windows VM environment where total available 
memory is limited per VM instance and JVM carshes with "Out Of Swap Space" 
error. We have not seen it yet on Linux shared hosting. This VM environment is 
only doing search and not creating / modifying any index.

What we were trying to figure out for past few days was that, "why is searcher 
creating a commit lock?". Based on your answer and based on another answer we 
got few days ago 
(http://mail-archives.apache.org/mod_mbox/lucene-java-user/200705.mbox/[EMAIL 
PROTECTED]) , we were under an impression that the commit lock was "LEFT" there 
by a Reader or a Writer. We looked at the code and we don't have any writers in 
search.exe.

I think Mike's answer from this morning 
(http://mail-archives.apache.org/mod_mbox/lucene-java-user/200705.mbox/[EMAIL 
PROTECTED]) clarifies that a searcher can indeed leave commit locks when JVM 
crashes. So, we have modified the code to deal with that situation for now.

Commit lock will not be a problem for us when we upgrade to Lucene 2.1, which 
is dependent on Lucene.NET's 2.1 release as we have a requirement to keep 
"Minalyzer Data Store" or collection of Index Collections readable by all three 
products and one of the products is in .NET.

Saurabh

----------------------------------------

From: "Digy" <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2007 9:02 AM
To: [email protected]
Subject: RE: Lock obtain timed exception 

Hi Laxmilal,
I think you have downloaded and used MinalyzerLite[Command line search tool
using Lucene (targeted for Site Search)] which was posted to this list at
05/20/2007. It must have left this lock somehow. So you can delete that
file(or to be safer move it to another directory first).

DIGY

-----Original Message-----
From: Laxmilal Menaria [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 9:38 AM
To: [email protected]; [EMAIL PROTECTED]
Subject: Re: Lock obtain timed exception

Lock obtain timed out: java.io.IOException: Lock obtain timed out:
[EMAIL PROTECTED]:\WINDOWS\TEMP\wrote:
>
> Hello everyone,
>
> I am getting Lock obtain timed exception while Searching in Index.
>
> My Steps: I have created a Lucene Index at first week of may 2007, after
> that I have nothing changed in index folder. Just I am searching. Searcher
> code have only MultiSearcher. BUT now I am getting "Lock obtain timed out
> exception", I saw in temp folder there was one lock file exists "
>
lucene-22e0ad3c019e26a6e2991b0e6ed97e1c-commit.lock<[EMAIL PROTECTED]
%5Clucene-22e0ad3c019e26a6e2991b0e6ed97e1c-commit.lock>
> "
>
> Is MultiSearcher created lock file? or any other issue ?
>
> Please suggest me..
>
> I am using Lucene 2.0.
>
> --
> Thanks,
> Laxmilal menaria
>
> http://www.minalyzer.com/
> http://www.chambal.com/
>

-- 
Thanks,
Laxmilal menaria

http://www.minalyzer.com/
http://www.chambal.com/

</[EMAIL PROTECTED]:%5CWINDOWS%5C
</[EMAIL PROTECTED]:%5CWINDOWS%5CTEMP%5Clucene-22e0ad3c019e26a6e299

Reply via email to