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

fix PcpMmvWriter strings leak #127

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

pwinckles
Copy link
Contributor

PcpMmvWriter leaks strings through its PcpStringStore when the writer is reset. The fix is to clear the store in the reset method. However, the metricInfoStore and instanceDomainStore rely on putting values in the string store when MMV2 is used. As such, these stores must also be cleared so that the strings can be recreated.

Resolves #38

`PcpMmvWriter` leaks strings through its `PcpStringStore` when the
writer is reset. The fix is to clear the store in the reset method.
However, the `metricInfoStore` and `instanceDomainStore` rely on
putting values in the string store when MMV2 is used. As such, these
stores must also be cleared so that the strings can be recreated.
@pwinckles pwinckles merged commit 4856dcb into performancecopilot:main Sep 6, 2024
1 check 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.

Resetting PcpMmvWriter does not clear all objects related to metrics
1 participant