-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
[date_histogram aggregation] OutOfMemoryError when using "time_zone" attribute #6965
Comments
The java heap histogram shows a very high number of InternalDateHistogram$Bucket instances:
|
Without using "min_doc_count" attribute, the query ends normally.
does not work, but
works fine |
Thanks for the report, this looks like an infinite loop in the reduce logic. I will look into it... |
The histogram reduce method can run into an infinite loop if the Rounding.nextRoundingValue value is buggy, which happened to be the case for DayTimeZoneRoundingFloor. DayTimeZoneRoundingFloor is fixed, and the histogram reduce method has been changed to fail instead of running into an infinite loop in case of a buffy nextRoundingValue impl. Close elastic#6965
The histogram reduce method can run into an infinite loop if the Rounding.nextRoundingValue value is buggy, which happened to be the case for DayTimeZoneRoundingFloor. DayTimeZoneRoundingFloor is fixed, and the histogram reduce method has been changed to fail instead of running into an infinite loop in case of a buffy nextRoundingValue impl. Close #6965
The histogram reduce method can run into an infinite loop if the Rounding.nextRoundingValue value is buggy, which happened to be the case for DayTimeZoneRoundingFloor. DayTimeZoneRoundingFloor is fixed, and the histogram reduce method has been changed to fail instead of running into an infinite loop in case of a buffy nextRoundingValue impl. Close #6965
Do you know if this was a bug in 1.1 also and, if so, if it has been fixed there as well? |
Hi there, I encountered the same issue in ES 1.1.2. |
@jpountz, are you planning to include this fix in the |
The histogram reduce method can run into an infinite loop if the Rounding.nextRoundingValue value is buggy, which happened to be the case for DayTimeZoneRoundingFloor. DayTimeZoneRoundingFloor is fixed, and the histogram reduce method has been changed to fail instead of running into an infinite loop in case of a buffy nextRoundingValue impl. Close #6965
The histogram reduce method can run into an infinite loop if the Rounding.nextRoundingValue value is buggy, which happened to be the case for DayTimeZoneRoundingFloor. DayTimeZoneRoundingFloor is fixed, and the histogram reduce method has been changed to fail instead of running into an infinite loop in case of a buffy nextRoundingValue impl. Close elastic#6965
Elasticsearch version : 1.2.2
Operation : date_histogram aggregation
In date_histogram aggregation (documentation), when I use the "time_zone" attribute, I have an OutOfMemoryError (see response below).
The complete stacktrace is:
Query detail :
With
"time_zone": "Europe/Paris"
, I have the same error.With
"time_zone": 0
, everything is good and the query tooks 19ms.The document mapping is:
I haven't any ideas of what happens!
The text was updated successfully, but these errors were encountered: