Skip to content

Stop runtime script from emitting too many values (backport of #61938)#62186

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:script_field_too_many_keywords_take_three_7_x
Sep 9, 2020
Merged

Stop runtime script from emitting too many values (backport of #61938)#62186
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:script_field_too_many_keywords_take_three_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Sep 9, 2020

This prevent keyword valued runtime scripts from emitting too many
values or values that take up too much space. Without this you can put
allocate a ton of memory with the script by sticking it into a tight
loop. Painless has some protections against this but:

  1. I don't want to rely on them out of sheer paranoia
  2. They don't really kick in when the script uses callbacks like we do
    anyway.

Relates to #59332

This prevent `keyword` valued runtime scripts from emitting too many
values or values that take up too much space. Without this you can put
allocate a ton of memory with the script by sticking it into a tight
loop. Painless has some protections against this but:
1. I don't want to rely on them out of sheer paranoia
2. They don't really kick in when the script uses callbacks like we do
   anyway.

Relates to elastic#59332
@nik9000 nik9000 merged commit 6d2cab9 into elastic:7.x Sep 9, 2020
@javanna javanna added v7.11.0 and removed v7.10.0 labels Oct 7, 2020
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.

2 participants