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

Change cache in MetricTimeQueryValidationRule to LruCache #1457

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Oct 15, 2024

Missed this earlier, but MetricTimeQueryValidationRule holds a reference to SemanticModelLookup / MetricLookup indirectly because it holds a reference to SemanticManifestLookup. Since those objects can be large, this PR changes the cache in MetricTimeQueryValidationRule to LruCache so that those objects are garbage-collected properly.

@cla-bot cla-bot bot added the cla:yes label Oct 15, 2024
Copy link

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@plypaul plypaul marked this pull request as ready for review October 15, 2024 17:51
@plypaul plypaul merged commit 1f007be into main Oct 16, 2024
38 of 40 checks passed
@plypaul plypaul deleted the plypaul--50--lru-cache-metric-time-rule branch October 16, 2024 16:59
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.

2 participants