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

Reset isWarm when clearing ConcurrentLru #404

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

bitfaster
Copy link
Owner

When ConcurrentLru is cleared, the isWarm flag was not reset. Consequently, items cannot enter the warm queue until they are requested a second time. This is confusing, because the cache behaves differently after it is cleared, and reduces effective capacity after clear reducing hit rate.

@bitfaster bitfaster linked an issue Oct 3, 2023 that may be closed by this pull request
@coveralls
Copy link

Coverage Status

coverage: 97.055% (-0.07%) from 97.121% when pulling 27897e1 on users/alexpeck/lruclear into 43281dd on main.

@bitfaster bitfaster marked this pull request as ready for review October 5, 2023 19:33
@bitfaster bitfaster merged commit 26063a4 into main Oct 5, 2023
14 checks passed
@bitfaster bitfaster deleted the users/alexpeck/lruclear branch October 5, 2023 19:33
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.

Clearing ConcurrentLru leaves cache in broken state
2 participants