Skip to content

Divide-by-zero error in cache_score #7027

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

Open
jc-harrison opened this issue May 12, 2025 · 0 comments · May be fixed by #7026
Open

Divide-by-zero error in cache_score #7027

jc-harrison opened this issue May 12, 2025 · 0 comments · May be fixed by #7026
Labels
bug Something isn't working FlowDB Issues related to FlowDB

Comments

@jc-harrison
Copy link
Member

If a cache table has size 0, this will result in a divide-by-zero error from the FlowDB cache_score function. This, in turn, prevents flowmachine from shrinking the cache.

We should ensure that the tablesize value used for calculating the cache score is always greater than 0, by increasing to a small non-zero value if necessary.

@jc-harrison jc-harrison added bug Something isn't working FlowDB Issues related to FlowDB labels May 12, 2025
@jc-harrison jc-harrison linked a pull request May 12, 2025 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FlowDB Issues related to FlowDB
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant