carrotsearch/randomizedtesting — Issue #67: A deadlock while testing on Lucene
Author: dweiss
Created: 2012-03-01 20:10:51+00:00
State: open
Labels: 1.0.0, bug

Java stack information for the threads listed above:
===================================================
"Lucene Merge Thread #1":
at com.carrotsearch.randomizedtesting.RandomizedContext.context(RandomizedContext.java:178)
- waiting to lock <0x00000000e0ec76a8> (a java.lang.Object)
at com.carrotsearch.randomizedtesting.RandomizedContext.current(RandomizedContext.java:127)
at org.apache.lucene.util.LuceneTestCase.getStaticRandom(LuceneTestCase.java:285)
at org.apache.lucene.util.LuceneTestCase.getRandom(LuceneTestCase.java:276)
at org.apache.lucene.index.TestTransactions.access$100(TestTransactions.java:33)
at org.apache.lucene.index.TestTransactions$RandomFailure.eval(TestTransactions.java:40)
at org.apache.lucene.store.MockDirectoryWrapper.maybeThrowDeterministicException(MockDirectoryWrapper.java:688)
- locked <0x00000000ff5eb530> (a org.apache.lucene.store.MockDirectoryWrapper)
at org.apache.lucene.store.MockDirectoryWrapper.createOutput(MockDirectoryWrapper.java:415)
- locked <0x00000000ff5eb530> (a org.apache.lucene.store.MockDirectoryWrapper)
at org.apache.lucene.codecs.lucene40.Lucene40FieldInfosWriter.write(Lucene40FieldInfosWriter.java:56)
at org.apache.lucene.index.SegmentMerger.mergeFieldInfos(SegmentMerger.java:194)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:109)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3623)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3257)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:382)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:451)
"Lucene Merge Thread #1":
at org.apache.lucene.index.IndexWriter.segString(IndexWriter.java:3764)
- waiting to lock <0x00000000f742c958> (a org.apache.lucene.index.IndexWriter)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.toString(ConcurrentMergeScheduler.java:499)
at com.carrotsearch.randomizedtesting.RandomNoSetSeed.(RandomNoSetSeed.java:27)
at com.carrotsearch.randomizedtesting.Randomness.(Randomness.java:20)
at com.carrotsearch.randomizedtesting.RandomizedContext.context(RandomizedContext.java:190)
- locked <0x00000000ff5e3490> (a java.lang.Object)
- locked <0x00000000e0ec76a8> (a java.lang.Object)
at com.carrotsearch.randomizedtesting.RandomizedContext.current(RandomizedContext.java:127)
at org.apache.lucene.util.LuceneTestCase.getStaticRandom(LuceneTestCase.java:285)
at org.apache.lucene.util.LuceneTestCase.getRandom(LuceneTestCase.java:276)
at org.apache.lucene.index.TestTransactions.access$100(TestTransactions.java:33)
at org.apache.lucene.index.TestTransactions$RandomFailure.eval(TestTransactions.java:40)
at org.apache.lucene.store.MockDirectoryWrapper.maybeThrowDeterministicException(MockDirectoryWrapper.java:688)
- locked <0x00000000ff5e3860> (a org.apache.lucene.store.MockDirectoryWrapper)
at org.apache.lucene.store.MockDirectoryWrapper.createOutput(MockDirectoryWrapper.java:415)
- locked <0x00000000ff5e3860> (a org.apache.lucene.store.MockDirectoryWrapper)
at org.apache.lucene.codecs.lucene40.Lucene40FieldInfosWriter.write(Lucene40FieldInfosWriter.java:56)
at org.apache.lucene.index.SegmentMerger.mergeFieldInfos(SegmentMerger.java:194)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:109)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3623)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3257)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:382)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:451)
"Lucene Merge Thread #0":
at org.apache.lucene.store.MockDirectoryWrapper.listAll(MockDirectoryWrapper.java:695)
- waiting to lock <0x00000000ff5e3860> (a org.apache.lucene.store.MockDirectoryWrapper)
at org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:345)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3272)
- locked <0x00000000f742c958> (a org.apache.lucene.index.IndexWriter)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:382)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:451)

Found 1 deadlock.