-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] GeoPointShapeQueryTests.testQueryLinearRing fails with UnsupportedOperationException #11688
Comments
Found that it fails here -
So when trace logs are enabled and it goes to line 210 and calls task.getDescription() - it results in following exception. When trace logs are not enabled, this line never gets called and tests executes normally.
|
PR - #8992 observed same failure here - https://build.ci.opensearch.org/job/gradle-check/35326/ |
This test seems like a serial offender, causing gradle check across multiple PRs to fail. can this be muted @andrross ? |
Or we can remove - |
@rishabhmaurya : It wouldn't be preferred as it is a trace log and may be useful in the context of debugging for other type of tasks. We should fix the test. |
As @rishabhmaurya pointed out, right now it is failing when trace logging is enabled. I looked into the test, it is a negative and it expects this same exception, just that from a different flow, but when trace logging is enabled, that exception is pre-empted via task.getDescription() call
I don't think we can control the logging behavior in TaskManager as it is generic across all tasks.
I would prefer Option 1. |
Raised the PR to fix it - #12783 |
The fix in #12783 doesn't look right, reopening so we don't lose it, cc: @Bukhtawar @shwetathareja (#12783 (comment)) |
Does anyone know why is a LinearRing should not be representable in OpenSearch? From the GeoJSON RFC [1] its a polygon... seems easier for our users (and test cases) by representing it as a polygon when outputted. |
@andrross @shwetathareja how about this fix - #12844 ? |
Describe the bug
GeoPointShapeQueryTests.testQueryLinearRing fails with UnsupportedOperationException -
Here is the failed test - https://build.ci.opensearch.org/job/gradle-check/31539/testReport/junit/org.opensearch.search.geo/GeoPointShapeQueryTests/testQueryLinearRing/
The failure is not reproducible on mac, amazonlinux and ubuntu when I tried to reproduce them locally with the same seed.
Relates to PR - #11039
Related component
Build
To Reproduce
Here are the steps to reproduce it, although its not reproducible -
https://build.ci.opensearch.org/job/gradle-check/31539/testReport/junit/org.opensearch.search.geo/GeoPointShapeQueryTests/testQueryLinearRing/
Expected behavior
Ideally such serialization/deserialization failures should be deterministic not be environment dependent.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: