-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[CI] RangeFieldTypeTests testRangeQueryIntersectsAdjacentValues failing #86284
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
Comments
Pinging @elastic/es-search (Team:Search) |
the tests uses it rounds up from -> 1970-01-03T03:46:54.999999999Z - and I think this might be a bug. If we used "1970-01-03T03:46:54**.000**Z" it would be fine. and it rounds to -> 1970-01-03T03:46:54.001Z it converts this to epoch: and low > high which causes an exception |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I think #86508 is caused by the same problem as this test failure, although its happening in "testFromLargerToErrors".
I think this is a genuine bug that might habe been introduced by some changed in date rounding on the 8.x line. The same setup still passes on 7.17 for me. The bug should show up rarely but probably also goes unnoticed in practice, since it only gets triggered by this relatively rare setup. |
Another failure: |
I'm removing the search label as this looks to be related to JavaDateMathParser's rounding, which is not owned by the search team. |
Another one that reproduces:
Going to mute |
This issue occurred again.
Note, the parameters are:
The cause is the date field parsing for the instant. It is losing some accuracy even though the instances are correctly Gonna mute |
I noticed those mutes while doing other work and took a look (specifically at This happens because of the usage of elasticsearch/server/src/main/java/org/elasticsearch/index/mapper/RangeType.java Line 288 in a7119a3
The problem is that The rounding logic was introduced in #50237 which points to documentation saying that So to me it does seem like there is something going on with date time parsing here. |
This issue has been closed because it has been open for too long with no activity. Any muted tests that were associated with this issue have been unmuted. If the tests begin failing again, a new issue will be opened, and they may be muted again. |
This issue is getting re-opened because there are still AwaitsFix mutes for the given test. It will likely be closed again in the future. |
This turns out to be a bug caused by the migration from Joda time to Java time. Prior to switching to Java time, Joda's Java's |
Build scan:
https://gradle-enterprise.elastic.co/s/2vshbqrk26hss/tests/:server:test/org.elasticsearch.index.mapper.RangeFieldTypeTests/testRangeQueryIntersectsAdjacentValues
Reproduction line:
./gradlew ':server:test' --tests "org.elasticsearch.index.mapper.RangeFieldTypeTests.testRangeQueryIntersectsAdjacentValues" -Dtests.seed=9F5B6EA0226718D0 -Dtests.locale=en-CA -Dtests.timezone=America/Port-au-Prince -Druntime.java=17
Applicable branches:
8.2
Reproduces locally?:
Yes
Failure history:
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.index.mapper.RangeFieldTypeTests&tests.test=testRangeQueryIntersectsAdjacentValues
Failure excerpt:
The text was updated successfully, but these errors were encountered: