[
https://issues.apache.org/jira/browse/LUCENE-9067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16983413#comment-16983413
]
ASF subversion and git services commented on LUCENE-9067:
---------------------------------------------------------
Commit 26647cbf658b5935a0015359cf38ba934b3e0699 in lucene-solr's branch
refs/heads/branch_8x from Ignacio Vera
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=26647cb ]
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: [email protected]
For additional commands, e-mail: [email protected]