Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.12](backport #38116) x-pack/filebeat/input/httpjson: drop response…
… bodies at end of execution (#38128) * x-pack/filebeat/input/httpjson: drop response bodies at end of execution (#38116) The response bodies of the first and last responses were being held in a closed-over variable resulting in high static memory loads in some situations. The bodies are not used between periodic executions with the documentation stating that only cursor values are persisted across restarts. The difference in behaviour between using the body field over a restart versus over a sequence of executions in the same run make them unsafe, so clarify the persistence behaviour in the documentation and free the bodies at the end of an execution. A survey of integrations that use the httpjson input did not identify any that are using behaviour that is being removed, but we will need to keep an eye on cases that may have been missed. In general, if persistence is being depended on, the cursor should be being used. (cherry picked from commit 353dab3) * remove irrelevant changelog entries --------- Co-authored-by: Dan Kortschak <[email protected]>
- Loading branch information