Skip to content

[CI] org.elasticsearch.search.geo.GeoShapeQueryTests. testQueryRandomGeoCollection failure #37356

Closed
@iverase

Description

@iverase

I noticed some failures in the test above. For example:

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.6+multijob-unix-compatibility/os=fedora/46/console

It can be reproduced without adding the method name:

./gradlew :server:unitTest
-Dtests.seed=506AA3004455CABB
-Dtests.class=org.elasticsearch.search.geo.GeoShapeQueryTests
-Dtests.method="testQueryRandomGeoCollection"
-Dtests.security.manager=true
-Dtests.locale=it
-Dtests.timezone=Asia/Vladivostok
-Dcompiler.java=11
-Druntime.java=8

I had a look into it and I could reproduce the issue at Lucene level.

The problem is that we are generating degenerated polygons in one dimension, for example:

polygon ((1.401298464324817E-45 22.0, 1.401298464324817E-45 69.0, 4.8202184588118395E-40 69.0, 4.8202184588118395E-40 22.0, 1.401298464324817E-45 22.0))

Then when indexing this polygon and perform an intersect query using the same one, they do not match. This is probably due to the encoding Lucene is using.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions