-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[CI] TimeZoneRoundingTests#testRoundingRandom fails #27966
Comments
This reproduces in The offending time zone is It isn't, however. It rounds down to Of importance, surely, is that |
Note to future self: because this time zone sets the clocks back at 00:01, it has the first minute of Sunday 2006-10-29 followed by 59 bonus minutes of Saturday 2006-10-28, and the chosen time is within that bonus period. The bug seems to be that we expect every time on a day to precede the following day's midnight within a given timezone, which is one of many reasonable-yet-false assumptions you can make about how time works. |
We concluded in today's Search & Aggs meeting that the current behaviour is desirable and the assertion in the test is at fault. The fix is therefore to change the assertion. As of TZDB 2017c, the only regular occurrences of these overlapping days since 1950 are the clocks going back in There was also a one-off shift in |
(also note that |
This will be fixed by #28151. |
Sometimes, in some places, the clocks are set back across midnight, leading to overlapping days. This was not handled as expected, and this change fixes this. Additionally, in this situation it is not true that rounding a time down to the nearest day is a monotonic operation, as asserted in these tests. This change suppresses those assertions in those rare cases. Fixes #27966.
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.6+periodic/1149/console
This is a reproducible failure:
The text was updated successfully, but these errors were encountered: