Re: lock file race conditions

2005-11-01 Thread Chris Hostetter
: IndexWriter writer = new IndexWriter(directory, new StandardAnalyzer(), : true); : : so if I try to close() it in a finally or something it throws a null : pointer exception since the exception was throw in the constructor. : : I'm simulating the exception by hand-creating the index directory and

Re: lock file race conditions

2005-11-01 Thread Dan Adams
lt;[EMAIL PROTECTED]> > : Reply-To: java-user@lucene.apache.org > : To: java-user@lucene.apache.org > : Subject: lock file race conditions > : > : I have 2 junit tests. The first opens on index writer and then simulates > : have an IOException get throw when trying to add a

Re: lock file race conditions

2005-11-01 Thread Chris Hostetter
PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: lock file race conditions : : I have 2 junit tests. The first opens on index writer and then simulates : have an IOException get throw when trying to add a document. The test : that runs after than

lock file race conditions

2005-11-01 Thread Dan Adams
I have 2 junit tests. The first opens on index writer and then simulates have an IOException get throw when trying to add a document. The test that runs after than is just a normal test of the search. After the first test completes a lock file is left in /tmp. Now, if I run the test suite normally