Skip to content

Prevent histogram from allocating tons of buckets (backport of #71758)#71986

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:histogram_no_crash_7_x
Apr 21, 2021
Merged

Prevent histogram from allocating tons of buckets (backport of #71758)#71986
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:histogram_no_crash_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Apr 20, 2021

This prevents the histogram aggregation from allocating tons of empty
buckets when you set the interval to something tiny. Instead, we
reject the request. We're not in a place where we can aggregate over
huge ranges with tiny intervals, but we should fail gracefully when you
ask us to do so rather than OOM.

Closes #71744

…c#71758)

This prevents the `histogram` aggregation from allocating tons of empty
buckets when you set the `interval` to something tiny. Instead, we
reject the request. We're not in a place where we can aggregate over
huge ranges with tiny intervals, but we should fail gracefully when you
ask us to do so rather than OOM.

Closes elastic#71744
@nik9000 nik9000 merged commit 4c99108 into elastic:7.x Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant