[ 
https://issues.apache.org/jira/browse/LUCENE-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743715#action_12743715
 ] 

Michael McCandless commented on LUCENE-1811:
--------------------------------------------

I believe this is just a thread-safety bug in the test.  It's deleting by a 
fixed docID, but, depending on how threads are scheduled, that docID may be 
invalid.  I'll commit a simple fix shortly...

> TestIndexReaderReopen nightly build failure
> -------------------------------------------
>
>                 Key: LUCENE-1811
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1811
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>
> An interesting failure in last night's build 
> (http://hudson.zones.apache.org/hudson/job/Lucene-trunk/920).
> I think the root cause wast he AIOOB exception... all the "lock obtain timed 
> out" exceptions look like they cascaded.
> {code}
>     [junit] Testsuite: org.apache.lucene.index.TestIndexReaderReopen
>     [junit] Lock obtain timed out: 
> org.apache.lucene.store.singleinstancel...@6ac615: write.lock)
>     [junit] Tests run: 15, Failures: 1, Errors: 0, Time elapsed: 31.087 sec
>     [junit] 
>     [junit] ------------- Standard Output ---------------
>     [junit] java.lang.ArrayIndexOutOfBoundsException: Array index out of 
> range: 148
>     [junit]   at org.apache.lucene.util.BitVector.getAndSet(BitVector.java:74)
>     [junit]   at 
> org.apache.lucene.index.SegmentReader.doDelete(SegmentReader.java:908)
>     [junit]   at 
> org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1122)
>     [junit]   at 
> org.apache.lucene.index.DirectoryReader.doDelete(DirectoryReader.java:521)
>     [junit]   at 
> org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1122)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen$8.modifyIndex(TestIndexReaderReopen.java:638)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen.refreshReader(TestIndexReaderReopen.java:840)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen.access$400(TestIndexReaderReopen.java:47)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen$9.run(TestIndexReaderReopen.java:681)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen$ReaderThread.run(TestIndexReaderReopen.java:822)
>     [junit] org.apache.lucene.store.LockObtainFailedException: Lock obtain 
> timed out: org.apache.lucene.store.singleinstancel...@88d319: write.lock
>     [junit]   at org.apache.lucene.store.Lock.obtain(Lock.java:85)
>     [junit]   at 
> org.apache.lucene.index.DirectoryReader.acquireWriteLock(DirectoryReader.java:666)
>     [junit]   at 
> org.apache.lucene.index.IndexReader.setNorm(IndexReader.java:994)
>     [junit]   at 
> org.apache.lucene.index.IndexReader.setNorm(IndexReader.java:1020)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen$8.modifyIndex(TestIndexReaderReopen.java:634)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen.refreshReader(TestIndexReaderReopen.java:840)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen.access$400(TestIndexReaderReopen.java:47)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen$9.run(TestIndexReaderReopen.java:681)
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen$ReaderThread.run(TestIndexReaderReopen.java:822)
>     ...
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: 
> testThreadSafety(org.apache.lucene.index.TestIndexReaderReopen):        FAILED
>     [junit] Error occurred in thread Thread-36:
>     [junit] Lock obtain timed out: 
> org.apache.lucene.store.singleinstancel...@6ac615: write.lock
>     [junit] junit.framework.AssertionFailedError: Error occurred in thread 
> Thread-36:
>     [junit] Lock obtain timed out: 
> org.apache.lucene.store.singleinstancel...@6ac615: write.lock
>     [junit]   at 
> org.apache.lucene.index.TestIndexReaderReopen.testThreadSafety(TestIndexReaderReopen.java:764)
>     [junit] 
>     [junit] 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to