mirror of https://github.com/apache/lucene.git
LUCENE-1811: fix thread safety bug in testcase
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@804474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
316ce42d99
commit
90c8ef28c8
|
@ -42,7 +42,7 @@
|
||||||
<property name="Name" value="Lucene"/>
|
<property name="Name" value="Lucene"/>
|
||||||
<property name="dev.version" value="2.9-dev"/>
|
<property name="dev.version" value="2.9-dev"/>
|
||||||
<property name="version" value="${dev.version}"/>
|
<property name="version" value="${dev.version}"/>
|
||||||
<property name="compatibility.tag" value="lucene_2_4_back_compat_tests_20090812"/>
|
<property name="compatibility.tag" value="lucene_2_4_back_compat_tests_20090815"/>
|
||||||
<property name="spec.version" value="${version}"/>
|
<property name="spec.version" value="${version}"/>
|
||||||
<property name="year" value="2000-${current.year}"/>
|
<property name="year" value="2000-${current.year}"/>
|
||||||
<property name="final.name" value="lucene-${name}-${version}"/>
|
<property name="final.name" value="lucene-${name}-${version}"/>
|
||||||
|
|
|
@ -702,7 +702,7 @@ public class TestIndexReaderReopen extends LuceneTestCase {
|
||||||
modifier.close();
|
modifier.close();
|
||||||
} else if (i % 3 == 1) {
|
} else if (i % 3 == 1) {
|
||||||
IndexReader modifier = IndexReader.open(dir);
|
IndexReader modifier = IndexReader.open(dir);
|
||||||
modifier.deleteDocument(i);
|
modifier.deleteDocument(i % modifier.maxDoc());
|
||||||
modifier.close();
|
modifier.close();
|
||||||
} else {
|
} else {
|
||||||
IndexWriter modifier = new IndexWriter(dir, new StandardAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);
|
IndexWriter modifier = new IndexWriter(dir, new StandardAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);
|
||||||
|
|
Loading…
Reference in New Issue