Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4277

TestIndexWriterWithThreads hung in DocumentsWriterFlushControl.

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-BETA, 6.0
    • None
    • None
    • New, Patch Available

    Description

      I've hit this when trying out the new runner with suite timeouts. And voila, it works Output below.

      Suite: org.apache.lucene.index.TestIndexWriterWithThreads
         > (@AfterClass output)
        2> 31.7.2012 15:28:45 com.carrotsearch.randomizedtesting.ThreadLeakControl$2 evaluate
        2> WARNING: Suite execution timed out: org.apache.lucene.index.TestIndexWriterWithThreads
        2> ==== jstack at approximately timeout time ====
        2> "Thread-54" ID=98 WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a owned by "Thread-53" ID=97
        2> 	at sun.misc.Unsafe.park(Native Method)
        2> 	- waiting on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a
        2> 	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2> 	at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2> 	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2> 	at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2> 
        2> "Thread-53" ID=97 WAITING on org.apache.lucene.index.DocumentsWriterFlushControl@5d4d1093
        2> 	at java.lang.Object.wait(Native Method)
        2> 	- waiting on org.apache.lucene.index.DocumentsWriterFlushControl@5d4d1093
        2> 	at java.lang.Object.wait(Object.java:485)
        2> 	at org.apache.lucene.index.DocumentsWriterFlushControl.waitForFlush(DocumentsWriterFlushControl.java:221)
        2> 	at org.apache.lucene.index.DocumentsWriter.abort(DocumentsWriter.java:233)
        2> 	- locked org.apache.lucene.index.DocumentsWriter@548ae184
        2> 	at org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:1845)
        2> 	at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:1813)
        2> 	- locked java.lang.Object@69dbcc78
        2> 	at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:537)
        2> 	Locked synchronizers:
        2> 	- java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a
        2> 
        2> "Thread-52" ID=96 WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a owned by "Thread-53" ID=97
        2> 	at sun.misc.Unsafe.park(Native Method)
        2> 	- waiting on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a
        2> 	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2> 	at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2> 	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2> 	at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2> 
        2> "Thread-51" ID=95 WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a owned by "Thread-53" ID=97
        2> 	at sun.misc.Unsafe.park(Native Method)
        2> 	- waiting on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a
        2> 	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2> 	at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2> 	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2> 	at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2> 
        2> "Thread-50" ID=94 WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a owned by "Thread-53" ID=97
        2> 	at sun.misc.Unsafe.park(Native Method)
        2> 	- waiting on java.util.concurrent.locks.ReentrantLock$NonfairSync@2103217a
        2> 	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2> 	at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2> 	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2> 	at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2> 
        2> "TEST-TestIndexWriterWithThreads.testRollbackAndCommitWithThreads-seed#[844703FAAAFA8855]" ID=87 WAITING on org.apache.lucene.index.TestIndexWriterWithThreads$1@358ce15a
        2> 	at java.lang.Object.wait(Native Method)
        2> 	- waiting on org.apache.lucene.index.TestIndexWriterWithThreads$1@358ce15a
        2> 	at java.lang.Thread.join(Thread.java:1143)
        2> 	at java.lang.Thread.join(Thread.java:1196)
        2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.testRollbackAndCommitWithThreads(TestIndexWriterWithThreads.java:590)
        2> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        2> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        2> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        2> 	at java.lang.reflect.Method.invoke(Method.java:597)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1569)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:81)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:739)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:775)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:789)
        2> 	at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
        2> 	at org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:32)
        2> 	at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
        2> 	at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
        2> 	at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
        2> 	at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
        2> 	at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
        2> 	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:345)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:763)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:424)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:748)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:650)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:684)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:695)
        2> 	at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
        2> 	at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
        2> 	at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
        2> 	at org.apache.lucene.util.TestRuleNoInstanceHooksOverrides$1.evaluate(TestRuleNoInstanceHooksOverrides.java:53)
        2> 	at org.apache.lucene.util.TestRuleNoStaticHooksShadowing$1.evaluate(TestRuleNoStaticHooksShadowing.java:52)
        2> 	at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:36)
        2> 	at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
        2> 	at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
        2> 	at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
        2> 	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:345)
        2> 	at java.lang.Thread.run(Thread.java:619)
        2> 
        2> "SUITE-TestIndexWriterWithThreads-seed#[844703FAAAFA8855]" ID=86 RUNNABLE
        2> 	at sun.management.ThreadImpl.dumpThreads0(Native Method)
        2> 	at sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:374)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl.formatThreadStacksFull(ThreadLeakControl.java:636)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl.access$800(ThreadLeakControl.java:60)
        2> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl$2.evaluate(ThreadLeakControl.java:379)
        2> 	- locked java.lang.Object@6e7b52bf
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:557)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.access$200(RandomizedRunner.java:81)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner$1.run(RandomizedRunner.java:491)
        2> 
        2> "Signal Dispatcher" ID=4 RUNNABLE
        2> 
        2> "Finalizer" ID=3 WAITING on java.lang.ref.ReferenceQueue$Lock@6275b243
        2> 	at java.lang.Object.wait(Native Method)
        2> 	- waiting on java.lang.ref.ReferenceQueue$Lock@6275b243
        2> 	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
        2> 	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
        2> 	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
        2> 
        2> "Reference Handler" ID=2 WAITING on java.lang.ref.Reference$Lock@1d0a7f35
        2> 	at java.lang.Object.wait(Native Method)
        2> 	- waiting on java.lang.ref.Reference$Lock@1d0a7f35
        2> 	at java.lang.Object.wait(Object.java:485)
        2> 	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        2> 
        2> "main" ID=1 WAITING on com.carrotsearch.randomizedtesting.RandomizedRunner$1@3f1074b4
        2> 	at java.lang.Object.wait(Native Method)
        2> 	- waiting on com.carrotsearch.randomizedtesting.RandomizedRunner$1@3f1074b4
        2> 	at java.lang.Thread.join(Thread.java:1143)
        2> 	at java.lang.Thread.join(Thread.java:1196)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:501)
        2> 	at com.carrotsearch.randomizedtesting.RandomizedRunner.run(RandomizedRunner.java:398)
        2> 	at com.carrotsearch.ant.tasks.junit4.slave.SlaveMain.execute(SlaveMain.java:153)
        2> 	at com.carrotsearch.ant.tasks.junit4.slave.SlaveMain.main(SlaveMain.java:246)
        2> 	at com.carrotsearch.ant.tasks.junit4.slave.SlaveMainSafe.main(SlaveMainSafe.java:12)
        2> 
        2> ^^==============================================
        2> 
        2> 31.7.2012 15:29:05 com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
        2> SEVERE: 6 threads leaked from SUITE scope at org.apache.lucene.index.TestIndexWriterWithThreads: 
        2>    1) Thread[id=87, name=TEST-TestIndexWriterWithThreads.testRollbackAndCommitWithThreads-seed#[844703FAAAFA8855], state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>         at java.lang.Object.wait(Native Method)
        2>         at java.lang.Thread.join(Thread.java:1143)
        2>         at java.lang.Thread.join(Thread.java:1196)
        2>         at org.apache.lucene.index.TestIndexWriterWithThreads.testRollbackAndCommitWithThreads(TestIndexWriterWithThreads.java:590)
        2>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        2>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        2>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        2>         at java.lang.reflect.Method.invoke(Method.java:597)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1569)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:81)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:739)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:775)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:789)
        2>         at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
        2>         at org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:32)
        2>         at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
        2>         at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
        2>         at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
        2>         at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
        2>         at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
        2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:345)
        2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:763)
        2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:424)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:748)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:650)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:684)
        2>         at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:695)
        2>         at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
        2>         at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
        2>         at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
        2>         at org.apache.lucene.util.TestRuleNoInstanceHooksOverrides$1.evaluate(TestRuleNoInstanceHooksOverrides.java:53)
        2>         at org.apache.lucene.util.TestRuleNoStaticHooksShadowing$1.evaluate(TestRuleNoStaticHooksShadowing.java:52)
        2>         at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:36)
        2>         at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
        2>         at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
        2>         at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
        2>         at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
        2>         at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:345)
        2>         at java.lang.Thread.run(Thread.java:619)
        2>    2) Thread[id=96, name=Thread-52, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>         at sun.misc.Unsafe.park(Native Method)
        2>         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2>         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2>         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2>    3) Thread[id=94, name=Thread-50, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>         at sun.misc.Unsafe.park(Native Method)
        2>         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2>         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2>         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2>    4) Thread[id=98, name=Thread-54, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>         at sun.misc.Unsafe.park(Native Method)
        2>         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2>         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2>         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2>    5) Thread[id=95, name=Thread-51, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>         at sun.misc.Unsafe.park(Native Method)
        2>         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
        2>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
        2>         at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
        2>         at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
        2>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:532)
        2>    6) Thread[id=97, name=Thread-53, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>         at java.lang.Object.wait(Native Method)
        2>         at java.lang.Object.wait(Object.java:485)
        2>         at org.apache.lucene.index.DocumentsWriterFlushControl.waitForFlush(DocumentsWriterFlushControl.java:221)
        2>         at org.apache.lucene.index.DocumentsWriter.abort(DocumentsWriter.java:233)
        2>         at org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:1845)
        2>         at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:1813)
        2>         at org.apache.lucene.index.TestIndexWriterWithThreads$1.run(TestIndexWriterWithThreads.java:537)
        2> 31.7.2012 15:29:05 com.carrotsearch.randomizedtesting.ThreadLeakControl tryToInterruptAll
        2> INFO: Starting to interrupt leaked threads:
        2>    1) Thread[id=87, name=TEST-TestIndexWriterWithThreads.testRollbackAndCommitWithThreads-seed#[844703FAAAFA8855], state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>    2) Thread[id=96, name=Thread-52, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>    3) Thread[id=94, name=Thread-50, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>    4) Thread[id=98, name=Thread-54, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>    5) Thread[id=95, name=Thread-51, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2>    6) Thread[id=97, name=Thread-53, state=WAITING, group=TGRP-TestIndexWriterWithThreads]
        2> 31.7.2012 15:29:07 com.carrotsearch.randomizedtesting.ThreadLeakControl tryToInterruptAll
        2> INFO: All leaked threads terminated.
        1> org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: org.apache.lucene.store.SingleInstanceLock@7685706f: write.lock
        1> 	at org.apache.lucene.store.Lock.obtain(Lock.java:84)
        1> 	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:595)
        1> 	at org.apache.lucene.index.TestIndexWriterWithThreads$DelayedIndexAndCloseRunnable.run(TestIndexWriterWithThreads.java:490)
        2> NOTE: test params are: codec=Lucene40: {field=PostingsFormat(name=Memory doPackFST= true), docid=PostingsFormat(name=MockSep), body=PostingsFormat(name=Memory doPackFST= true), title=PostingsFormat(name=Lucene40WithOrds), titleTokenized=PostingsFormat(name=NestedPulsing), date=PostingsFormat(name=Memory doPackFST= true)}, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {field=IB SPL-D3(800.0), body=DFR I(ne)2, titleTokenized=IB LL-L3(800.0)}, locale=cs_CZ, timezone=America/Anguilla
        2> NOTE: Linux 2.6.32-38-server amd64/Sun Microsystems Inc. 1.6.0_20 (64-bit)/cpus=4,threads=2,free=122913408,total=155123712
        2> NOTE: All tests run in this JVM: [TestFieldMaskingSpanQuery, TestDocValuesTypeCompatibility, TestTermScorer, TestSnapshotDeletionPolicy, TestLongPostings, TestSort, TestIndexWriter, TestCopyBytes, TestDocumentWriter, TestDateFilter, TestParallelReaderEmptyIndex, TestDateTools, TestMergeSchedulerExternal, TestPrefixInBooleanQuery, TestIndexWriterWithThreads]
        1> 
        2> 
      ERROR   0.00s J0 | TestIndexWriterWithThreads (suite)
         > Throwable #1: java.lang.Exception: Suite timeout exceeded (>= 600000 msec).
         > 	at __randomizedtesting.SeedInfo.seed([844703FAAAFA8855]:0)
         >
      Completed on J0 in 622.52s, 3 tests, 1 error <<< FAILURES!
      

      Attachments

        1. LUCENE-4277.patch
          3 kB
          Simon Willnauer
        2. LUCENE-4277.patch
          2 kB
          Simon Willnauer
        3. LUCENE-4277.patch
          2 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            dweiss Dawid Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: