lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r804474 - in /lucene/java/trunk: common-build.xml src/test/org/apache/lucene/index/TestIndexReaderReopen.java
Date Sat, 15 Aug 2009 14:06:20 GMT
Author: mikemccand
Date: Sat Aug 15 14:06:19 2009
New Revision: 804474

URL: http://svn.apache.org/viewvc?rev=804474&view=rev
Log:
LUCENE-1811: fix thread safety bug in testcase

Modified:
    lucene/java/trunk/common-build.xml
    lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReaderReopen.java

Modified: lucene/java/trunk/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/common-build.xml?rev=804474&r1=804473&r2=804474&view=diff
==============================================================================
--- lucene/java/trunk/common-build.xml (original)
+++ lucene/java/trunk/common-build.xml Sat Aug 15 14:06:19 2009
@@ -42,7 +42,7 @@
   <property name="Name" value="Lucene"/>
   <property name="dev.version" value="2.9-dev"/>
   <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="year" value="2000-${current.year}"/>
   <property name="final.name" value="lucene-${name}-${version}"/>

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReaderReopen.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReaderReopen.java?rev=804474&r1=804473&r2=804474&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReaderReopen.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReaderReopen.java Sat Aug
15 14:06:19 2009
@@ -702,7 +702,7 @@
           modifier.close();
         } else if (i % 3 == 1) {
           IndexReader modifier = IndexReader.open(dir);
-          modifier.deleteDocument(i);
+          modifier.deleteDocument(i % modifier.maxDoc());
           modifier.close();
         } else {
           IndexWriter modifier = new IndexWriter(dir, new StandardAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);



Mime
View raw message