geospatial icon indicating copy to clipboard operation
geospatial copied to clipboard

[BUG] testGeoHexGridBucket fails with max precision of 15

Open ryanbogan opened this issue 1 year ago • 0 comments

What is the bug? testGeoHexGridBucket fails with max precision of 15

java.lang.AssertionError: expected:<{8ff158335473599=1, 8fc0414ecb699a1=1, 8f0326233ab0399=1, 8f754e64992d6d8=1, 8f17a334511d540=1}> but was:<{8fc0414ecb699a1=1, 8f0326233ab0399=1, 8ff15833547359d=1, 8f754e64992d6d8=1, 8f17a334511d540=1}>

        at __randomizedtesting.SeedInfo.seed([D7F4A6450A06B236:1529CE8517271E9E]:0)

        at org.junit.Assert.fail(Assert.java:89)

        at org.junit.Assert.failNotEquals(Assert.java:835)

        at org.junit.Assert.assertEquals(Assert.java:120)

        at org.junit.Assert.assertEquals(Assert.java:146)

        at org.opensearch.geospatial.search.aggregations.bucket.geogrid.GeoHexAggregationIT.testGeoHexGridBucket(GeoHexAggregationIT.java:105)

How can one reproduce the bug? Steps to reproduce the behavior:

./gradlew ':integTest' --tests "org.opensearch.geospatial.search.aggregations.bucket.geogrid.GeoHexAggregationIT.testGeoHexGridBucket" -Dtests.seed=D7F4A6450A06B236 -Dtests.security.manager=false

What is the expected behavior? Test should pass with precision set to 15

ryanbogan avatar Feb 15 '24 17:02 ryanbogan