Skip to content
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

[13.4-stable] memory-monitor: Add error tolerance to memory allocation logging in handler script #4419

Conversation

OhmSpectator
Copy link
Member

Backport of #4415

…andler script.

Allow the memory-monitor-handler script to proceed even if no memory
allocation sites are found in `logread` output. Previously, if `logread`
returned no matches for "logMemAllocationSites," the script would
terminate due to `set -e`. This change adds `|| :` to handle the
potential absence of matches, enabling the script to continue executing
subsequent commands.

Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
(cherry picked from commit fbb6ed0)
@OhmSpectator OhmSpectator merged commit f0c24d3 into lf-edge:13.4-stable Nov 4, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants