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

Polygon2D#contains is not thread safe

    XMLWordPrintableJSON

    Details

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

      Description

      We hit the following test error:

       

      ant test  -Dtestcase=TestLatLonDocValuesQueries -Dtests.method=testAllLonEqual -Dtests.seed=E5C923927CDBBE49 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=tr-CY -Dtests.timezone=Etc/GMT-8 -Dtests.asserts=true -Dtests.file.encoding=US-ASCII

       

      The problem is that Polygon2D is not thread safe but Lucene assumes that multiple scorers from the same weight can be consumed concurrently. I that case two threads accessing the contains method on the same polygon can lead to bad answers.

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ivera Ignacio Vera
                Reporter:
                ivera Ignacio Vera
              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 10m
                  1h 10m