You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Ignacio Vera (Jira)" <ji...@apache.org> on 2019/11/26 11:10:00 UTC

[jira] [Created] (LUCENE-9067) Polygon2D#contains is not thread safe

Ignacio Vera created LUCENE-9067:
------------------------------------

             Summary: Polygon2D#contains is not thread safe
                 Key: LUCENE-9067
                 URL: https://issues.apache.org/jira/browse/LUCENE-9067
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Ignacio Vera


We hit the following test error:

 
{code:java}
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{code}
 

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.

 

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org