lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Peter Stotz <>
Subject Unintelligent implementation of IndexWriter locking?
Date Sun, 30 Aug 2009 17:23:27 GMT
Hi Lucene users,

at the moment I have some problems with the locking mechanism of
IndexWriter. Some times my application quits/terminates before I can close
the IndexWriter. Then the "write.lock" file remains and prohibits every
write access to my index. Of course I could simply unlock the directory
with the index but from the description of the unlock mechanism I read out
that it does not check if some other process still holds the lock and
therefore concurrent writes from multiple process may occur.

Is the locking mechanism really so "dumb"?
If yes - why does Lucene not use a more intelligent approach, e.g. the one
via RandomAccessFile as it is presented here:

Ciao, Jan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message