-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[libbeat] Cache processor docs and memory fixes. #38561
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
💔 Build Failed
Failed CI Stepscc @marc-gr |
💔 Build Failed
Failed CI Stepscc @marc-gr |
💔 Build Failed
Failed CI Stepscc @marc-gr |
This pull request doesn't have a |
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think interval is better term here. Also see this comment from the addition. Suggest changing the documentation rather than the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(hold for discusssion)
That was my initial option, too. The thing that made it for period at the end was mainly that anyone using this setting will have it set up as |
write_period
to write_interval
.
I would prefer to just ignore them, but Andrew may disagree.
Heap sort is not lexical sort, so this is fine. We don't care about the order of the heap entries, just that the heap behaves like a heap. |
/test |
/test |
1 similar comment
/test |
I think the failures in metricbeat-pythonIntegTest are caused by #38539. |
Change cache processor documentation from write_period to write_interval. Fix expires heap cleanup on partial file writes: popping the expiries heap completely on every partial write caused a panic on the following put operations at the time of expiry check. Fix expires infinite growth when large TTLs and recurring keys are cached: when TTLs are large and keys are recurrent, we kept track of an arbitrary amount of expiry heap entries for the same key, causing memory to grow. (cherry picked from commit b1e4abc)
Change cache processor documentation from write_period to write_interval. Fix expires heap cleanup on partial file writes: popping the expiries heap completely on every partial write caused a panic on the following put operations at the time of expiry check. Fix expires infinite growth when large TTLs and recurring keys are cached: when TTLs are large and keys are recurrent, we kept track of an arbitrary amount of expiry heap entries for the same key, causing memory to grow.
…es. (#38745) Change cache processor documentation from write_period to write_interval. Fix expires heap cleanup on partial file writes: popping the expiries heap completely on every partial write caused a panic on the following put operations at the time of expiry check. Fix expires infinite growth when large TTLs and recurring keys are cached: when TTLs are large and keys are recurrent, we kept track of an arbitrary amount of expiry heap entries for the same key, causing memory to grow. (cherry picked from commit b1e4abc) --------- Co-authored-by: Marc Guasch <[email protected]>
@Mergifyio backport 8.12 |
✅ Backports have been created
|
Change cache processor documentation from write_period to write_interval. Fix expires heap cleanup on partial file writes: popping the expiries heap completely on every partial write caused a panic on the following put operations at the time of expiry check. Fix expires infinite growth when large TTLs and recurring keys are cached: when TTLs are large and keys are recurrent, we kept track of an arbitrary amount of expiry heap entries for the same key, causing memory to grow. (cherry picked from commit b1e4abc)
…39001) * [libbeat] Cache processor docs and memory fixes. (#38561) Change cache processor documentation from write_period to write_interval. Fix expires heap cleanup on partial file writes: popping the expiries heap completely on every partial write caused a panic on the following put operations at the time of expiry check. Fix expires infinite growth when large TTLs and recurring keys are cached: when TTLs are large and keys are recurrent, we kept track of an arbitrary amount of expiry heap entries for the same key, causing memory to grow. (cherry picked from commit b1e4abc) * Update CHANGELOG.next.asciidoc --------- Co-authored-by: Marc Guasch <[email protected]>
Proposed commit message
write_period
towrite_interval
.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.