-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Flaky Test failure GeoTileGridIT.testGeoShapes #212
Comments
assigning it to geospatial team to help triage |
@minalsha Does the rerun of this test results in failure too? |
I was able to reproduce the failure with JAVA19. The test passed with JAVA17 and JAVA18. |
Still investigating. It is not related with JAVA version but with a seed of random values. |
Test is failing when bounding box filtering option is provided. The failure could happen when multiple shapes belong to a single tile and bounding box filters part of them. When we calculate the expected number of document for a tile, we do it without any filtering. https://github.com/opensearch-project/OpenSearch/blob/b1cf2d144ebac899bcae9880ee51728df397b5c0/modules/geo/src/internalClusterTest/java/org/opensearch/geo/search/aggregations/bucket/AbstractGeoBucketAggregationIntegTest.java#L98-L102 If bounding box is provided, it might filter some of the document and the number of document in response could be less than what we calculated before for the tile. |
Found the issue, the first problem is here: https://github.com/opensearch-project/OpenSearch/blob/b1cf2d144ebac899bcae9880ee51728df397b5c0/modules/geo/src/internalClusterTest/java/org/opensearch/geo/search/aggregations/bucket/AbstractGeoBucketAggregationIntegTest.java#L91-L96 , there is double if condition added. Seems like a copy paste error to me. 1 more thing, which is an edge case, we don't need to compute buckets for shapes for a given precision if they are outside the BB. This can also cause issues if the bucket and BB is intersecting the bucket at corners. Will fix this also. It was added for geohashes but was not present for geotiles aggregation. |
…tion. Signed-off-by: Navneet Verma <navneev@amazon.com>
…tion. Signed-off-by: Navneet Verma <navneev@amazon.com>
…tion. Signed-off-by: Navneet Verma <navneev@amazon.com>
@minalsha raised this PR: opensearch-project/OpenSearch#6120, please check the PR . Once this is approved. the tests will be consistent. |
…tion. Signed-off-by: Navneet Verma <navneev@amazon.com>
…tion. Signed-off-by: Navneet Verma <navneev@amazon.com>
#6120) Fixing the IT for GeoTilesAggregation. Signed-off-by: Navneet Verma <navneev@amazon.com>
The PR is merged. Closing the github issue. |
opensearch-project#6120) Fixing the IT for GeoTilesAggregation. Signed-off-by: Navneet Verma <navneev@amazon.com>
* Add GeoTile and GeoHash Grid aggregations on GeoShapes. (#5589) Src files for GeoTile and GeoHash Aggregations on GeoShape with integration tests. Signed-off-by: Navneet Verma <navneev@amazon.com> * [opensearch-project/geospatial#212] Fixing the IT for GeoTilesAggrega… (#6120) Fixing the IT for GeoTilesAggregation. Signed-off-by: Navneet Verma <navneev@amazon.com> * [#6187, #6222] Fixing the GeoShapes GeoHash and GeoTile Aggregations Integration tests. (#6242) Changes done: * Fixed the ArrayIndexOutOfBoundsException. * Reduced the precision for GeoShapes Aggregation IT testing. Signed-off-by: Navneet Verma <navneev@amazon.com> * [#7101] Fixing the GeoTileIT#testMultivaluedGeoPointsAggregation test case. (#7166) The issue was happening because we encode the GeoPoint as long and error comes in the precision due to that encoding. The error was not taken care while generating the exepected tiles count for execpected output. Signed-off-by: Navneet Verma <navneev@amazon.com> --------- Signed-off-by: Navneet Verma <navneev@amazon.com> Signed-off-by: Heemin Kim <heemin@amazon.com> Co-authored-by: Navneet Verma <navneev@amazon.com>
@mch2 commented on Fri Jan 27 2023
https://build.ci.opensearch.org/job/gradle-check/10078/consoleFull
opensearch-project/OpenSearch#5898 (comment)
@mch2 commented on Mon Jan 30 2023
https://build.ci.opensearch.org/job/gradle-check/10076/
The text was updated successfully, but these errors were encountered: