: 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
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
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
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