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

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

    [ https://issues.apache.org/jira/browse/LUCENE-9067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16983407#comment-16983407 ] 

ASF subversion and git services commented on LUCENE-9067:
---------------------------------------------------------

Commit 14dc678f397f9bd9628ce666993fcbdc0e52582a in lucene-solr's branch refs/heads/master from Ignacio Vera
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=14dc678 ]

LUCENE-9067: Polygon2D#contains is now thread safe (#1040)

Use a byte to handle the logic if a point lies on the boundary.


> 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
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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