Re: Lucene 2.3.1 IndexReader and IndexWriter Synchronization Issues

2008-03-29 Thread Jamie
H Michael Well spotted! Thanks for the tip and your precious time. Thanks! Jamie Michael McCandless wrote: OK indeed from your code you are manually removing files from the index (the "deleteIndex" method). You shouldn't do that. I think what's happening is deleteIndex is called when an In

Re: Lucene 2.3.1 IndexReader and IndexWriter Synchronization Issues

2008-03-29 Thread Michael McCandless
OK indeed from your code you are manually removing files from the index (the "deleteIndex" method). You shouldn't do that. I think what's happening is deleteIndex is called when an IndexReader has the index open (do you see those "failed to delete file in existing index" log messages?), then you

Re: Lucene 2.3.1 IndexReader and IndexWriter Synchronization Issues

2008-03-29 Thread Jamie
By the way, the line numbers in the last email apply to the SVN trunk code. I switch over to the latest code to see if this would make a difference. Alas, the problem still exists! Jamie wrote: Hi Michael Glad you asked and thanks in advance for your help! I am trying to reindex 325 emails.

Re: Lucene 2.3.1 IndexReader and IndexWriter Synchronization Issues

2008-03-29 Thread Jamie
Hi Michael Glad you asked and thanks in advance for your help! I am trying to reindex 325 emails. Its a pretty straight forward use of Lucene. I create an IndexWriter, write a whole bunch of documents and then close the Index every 2 seconds. See the attached source code. In case, you are won

Re: Lucene 2.3.1 IndexReader and IndexWriter Synchronization Issues

2008-03-29 Thread Michael McCandless
That use case of Lucene should be fine, ie no further synchronization should be necessary. Your debug output below is great, but it doesn't seem to cover the occurrence of that exception. Can you post the full debug output? Can you describe how you reindex in more detail? Are you manual