Reputation: 1339
Directory lock error with Lucene.Net usage in an ASP.NET MVC site
Hi guys,
In the link above essentially is the issue I have.
However I am correctly disposing of the writer.
Problem is my main writer takes 20 mins due to the size of the data (200k + docs 25 Cols) and the slowness of the server.
So I have 2 writers one which does everything (all document on a 4 hour timer)
And one for when someone manually edits a column it removes a document and re adds it.
It is the second one that is throwing the timeout due to the fact that the first writer is still doing its thing taking forever. I would like to increase the timeout is this possible?
Cheers
Upvotes: 0
Views: 552
Reputation: 19781
You can change the lock timeout by increasing IndexWriter.WRITE_LOCK_TIMEOUT, or setting it to -1 to wait forever. There's also a Lock.LOCK_POLL_INTERVAL that states how often Lock.Obtain should attempt to retrieve the lock.
Upvotes: 1