commit.lock
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ljubomir_Cvetkovic
Posted On:   Tuesday, July 22, 2003 09:34 AM

Hello,

we are using Lucene to search for products in our database and as I read the commit.lock is used by IndexWriter and IndexReader.

We are experiencing some thread locks and our debugging seems to point to Lucene and the commit.lock.

Since we are only reading the index while our app is running is there a way to disable the creation of commit.lock and would it have some adverse affects on our site?


Thank you very much - any answer would be greatelly appreciated since we are having a production issue.

Re: commit.lock

Posted By:   Otis_Gospodnetic  
Posted On:   Wednesday, July 23, 2003 01:55 AM

Ljubomire, you can disable commit.lock, but you should not need to. The fact that you are running into locking issues indicates that your code is a bit buggy. Disabling the locking in that case especially, would most likely result in exceptions. You can have multiple index reads (querying), you can even query the index while writing to it, but you must only have a single IndexWriter adding or deleting documents from the index at any one time.
Your code most likely has multiple IndexWriters accessing the same index simultaneously, and that is why you are running into locked index issues.
About | Sitemap | Contact