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

fixed: clusters from the same leaf node get marked as used during testing #43

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

StanislawSwierc
Copy link
Contributor

This change fixes #38.

As noted in the issue report, some clusters were kept longer than what the LRU policy would dictate. It turned out that all the clusters from the same leaf node were updated during the search for a matching cluster, even if they were vastly different from the log message.

Existing tests covered only the scenario where evicted clusters belong to different leaf nodes. This change adds missing test for the single leaf scenario and fixes the problem by adding a new LogClusterCache class.

@davidohana davidohana merged commit 8dbb3e6 into logpai:master Jul 22, 2021
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.

Cache always updates clusters even if not needed anymore
2 participants