-
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
Illegal instant due to time zone offset transition #10025
Comments
@cbuescher can you take a look? @greenboxal You should absolutely never be running on master (or 1.x). These are based on snapshots of Lucene, and those snapshots use as yet unreleased versions of Lucene's index format. There are zero backcompat guarantees when you do this. Only use officially released versions of Elasticsearch (which are based on officially released version of Lucene). |
I can't use a stable release as #9491 fix didn't land in any released version(at least when we started using master). |
We started to use Joda times utility method for local to UTC time conversions in the Rounding classes. It seems that doing this with the "strict" option set to true makes Joda time to throw exceptions when using this conversion on local time stamps that would fall in the DST gaps when DST is switched on. I could reproduce this on 1.x, but it also seems to affect the 1.4 and master branch where we now use DateTimeTone#convertLocalToUTC(). |
…ne roundings This solves a problem in the time zone rounding classes where time dates that fall into a DST gap will cause joda time library to throw an exception. Changing the conversion methods 'strict' option to false prevents this. Closes elastic#10025
…ne roundings This solves a problem in the time zone rounding classes where time dates that fall into a DST gap will cause joda time library to throw an exception. Changing the conversion methods 'strict' option to false prevents this. Closes #10025
…ne roundings This solves a problem in the time zone rounding classes where time dates that fall into a DST gap will cause joda time library to throw an exception. Changing the conversion methods 'strict' option to false prevents this. Closes #10025
@cbuescher Do you think that the commit referenced above would handle this exception as well?
I know its pretty similar, but I want to make sure it would be solved by upgrading ES before I go about doing that. |
@deusofnull Thanks, from a first glance I would not say that this is related. IllegaInstantException is used in various places in joda time. This issue concerns a case where it is raised when converting time zones in DateTimeZone that fall into the DST gap. Your issue seems to be related to parsing a date that falls into the DST gap, thats why they look similar, but the rest of the stack trace is different. It would be great if you could open a separate issue and report what you are doing and which version of ES you are running there. |
@cbuescher Ill bring up a new issue then! Thanks! What is strange is that I was parsing 90 days back of timestamps and I got this error for all of them. All 15k of the timestamps. If I'm correct, DST started about a month ago... So why did those dates still elicit the error? |
…ne roundings This solves a problem in the time zone rounding classes where time dates that fall into a DST gap will cause joda time library to throw an exception. Changing the conversion methods 'strict' option to false prevents this. Closes elastic#10025
When issuing a date_histogram with
America/Sao_Paulo
as timezone, the query fails with the following stack trace:Stack Trace:
Please note that this is a very critical bug, we're already running on master due to another ElasticSearch bug(#9491).
The text was updated successfully, but these errors were encountered: