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

SlowCompositeReaderWrapper is caching an AssertingBits instance

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I hit this curious failure in the new TestGeoPointQuery:

         [junit4]   2> มิ.ย. 09, 2015 12:49:55 ก่อนเที่ยง com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
         [junit4]   2> WARNING: Uncaught exception in thread: Thread[T1,5,TGRP-TestGeoPointQuery]
         [junit4]   2> java.lang.AssertionError: Bits are only supposed to be consumed in the thread in which they have been acquired. But was acquired in Thread[TEST-TestGeoPointQuery.testRandom-seed#[173A293B58C5F8A1],5,TGRP-TestGeoPointQuery] and consumed in Thread[T1,5,TGRP-TestGeoPointQuery].
         [junit4]   2> 	at __randomizedtesting.SeedInfo.seed([173A293B58C5F8A1]:0)
         [junit4]   2> 	at org.apache.lucene.index.AssertingLeafReader.assertThread(AssertingLeafReader.java:39)
         [junit4]   2> 	at org.apache.lucene.index.AssertingLeafReader.access$000(AssertingLeafReader.java:33)
         [junit4]   2> 	at org.apache.lucene.index.AssertingLeafReader$AssertingBits.get(AssertingLeafReader.java:769)
         [junit4]   2> 	at org.apache.lucene.search.LRUQueryCache$CachingWrapperWeight$1.matches(LRUQueryCache.java:606)
         [junit4]   2> 	at org.apache.lucene.search.TwoPhaseIterator$1.doNext(TwoPhaseIterator.java:69)
         [junit4]   2> 	at org.apache.lucene.search.TwoPhaseIterator$1.nextDoc(TwoPhaseIterator.java:57)
         [junit4]   2> 	at org.apache.lucene.search.ConstantScoreScorer.nextDoc(ConstantScoreScorer.java:78)
         [junit4]   2> 	at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:204)
         [junit4]   2> 	at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:176)
         [junit4]   2> 	at org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:79)
         [junit4]   2> 	at org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:63)
         [junit4]   2> 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:563)
         [junit4]   2> 	at org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:92)
         [junit4]   2> 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:367)
         [junit4]   2> 	at org.apache.lucene.search.TestGeoPointQuery$1._run(TestGeoPointQuery.java:382)
         [junit4]   2> 	at org.apache.lucene.search.TestGeoPointQuery$1.run(TestGeoPointQuery.java:309)
         [junit4]   2> 
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestGeoPointQuery -Dtests.method=testRandom -Dtests.seed=173A293B58C5F8A1 -Dtests.slow=true -Dtests.linedocsfile=/lucenedata/hudson.enwiki.random.lines.txt.fixed -Dtests.locale=th -Dtests.timezone=Africa/Djibouti -Dtests.asserts=true -Dtests.file.encoding=UTF-8
      

        Attachments

        1. LUCENE-6533.patch
          4 kB
          Michael McCandless
        2. LUCENE-6533.patch
          3 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: