Skip to content

Fix two scripted_metric bugs (backport of #58547)#58565

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:scripted_metric_mem_fixup_7x
Jun 25, 2020
Merged

Fix two scripted_metric bugs (backport of #58547)#58565
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:scripted_metric_mem_fixup_7x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Jun 25, 2020

Fixes two bugs introduced by #57627:

  1. We were not properly letting go of memory from the request breaker
    when the aggregation finished.
  2. We no longer supported totally arbitrary stuff produced by the init
    script because we assumed that it'd be ok to run the script once
    and clone its results. Sadly, cloning can't clone anything that the
    init script can make, like String arrays. This runs the init script
    once for every new bucket so we don't need to clone.

Fixes two bugs introduced by elastic#57627:
1. We were not properly letting go of memory from the request breaker
   when the aggregation finished.
2. We no longer supported totally arbitrary stuff produced by the init
   script because we *assumed* that it'd be ok to run the script once
   and clone its results. Sadly, cloning can't clone *anything* that the
   init script can make, like `String` arrays. This runs the init script
   once for every new bucket so we don't need to clone.
@nik9000 nik9000 merged commit 5f52bc4 into elastic:7.x Jun 25, 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.

1 participant