IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread trond . lindanger
Hi, In my test case, four Quartz jobs are starting each third minute storing records in a database followed by an index update. After doing a test run over a period of 16 hours, I got this exception after 10 hours: java.io.IOException: Access is denied at java.io.RandomAccessFile.writeB

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread trond . lindanger
Forgot something... Also I got this exception, which may be related: java.io.IOException: Cannot delete C:\dknewscenter\2\_5d.cfs at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:319) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:208)

Re: IOException: Access is denied from IndexWriter.Optimize

2006-12-05 Thread trond . lindanger
Thank you for quick and detailed answer. In this system multiple threads will, occasionally, try to write and/ or read the same index, hence the pause waiting for the lock. This is not a good way to implement it and was done as a temp solution for debug purposes only. Multiple processes may stil