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

TestSortedSetDocValuesFacets fails with Bits shared between threads

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0, 8.11
    • modules/facet
    • None
    • New

    Description

      Repro:

      gradlew -p lucene\facet test -Ptests.seed=5E8A2F2BBCCBDF1B
      
      org.apache.lucene.facet.sortedset.TestSortedSetDocValuesFacets > testCountAll FAILED
          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-TestSortedSetDocValuesFacets.testCountAll-seed#[5E8A2F2BBCCBDF1B],5,TGRP-TestSortedSetDocValuesFacets] and consumed in Thread[TestIndexSearcher-2-thread-1,5,TGRP-TestSortedSetDocValuesFacets].
              at __randomizedtesting.SeedInfo.seed([5E8A2F2BBCCBDF1B:FFB0A39BEF474EA3]:0)
              at org.apache.lucene.index.AssertingLeafReader.assertThread(AssertingLeafReader.java:43)
              at org.apache.lucene.index.AssertingLeafReader$AssertingBits.get(AssertingLeafReader.java:1374)
              at org.apache.lucene.facet.FacetUtils$1.doNext(FacetUtils.java:62)
              at org.apache.lucene.facet.FacetUtils$1.nextDoc(FacetUtils.java:70)
              at org.apache.lucene.facet.sortedset.ConcurrentSortedSetDocValuesFacetCounts$CountOneSegment.call(ConcurrentSortedSetDocValuesFacetCounts.java:260)
              at org.apache.lucene.facet.sortedset.ConcurrentSortedSetDocValuesFacetCounts$CountOneSegment.call(ConcurrentSortedSetDocValuesFacetCounts.java:159)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
              at java.base/java.lang.Thread.run(Thread.java:832)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dweiss Dawid Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h