ahh, yes, sorry, the ability to read is occasionally handy... [wipes egg off forehead]

cheers,
jed.

Michael McCandless wrote:

Actually, yes in 2.3.2: IndexReader.unlock has existed for a long time.

In 2.4.0, we moved this to IndexWriter.unlock.

Mike

Jed Wesley-Smith wrote:

not in 2.3.2 though.

cheers,
jed.

Michael McCandless wrote:

Or you can use IndexReader.unlock.

Mike

Jed Wesley-Smith wrote:

Michael McCandless wrote:

To workaround this, on catching an OOME on any of IndexWriter's
methods, you should 1) forcibly remove the write lock
(IndexWriter.unlock static method)

IndexWriter.unlock(*) is 2.4 only.

Use the following instead:

 directory.makeLock(IndexWriter.WRITE_LOCK_NAME).release();


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to