Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix ExpiringCache.__len__ to be accurate #3956

Merged
merged 3 commits into from
Sep 26, 2018
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 26, 2018

It used to try and produce an estimate, which was sometimes negative. This caused metrics to be sad, so lets always just calculate it from scratch.

(This appears to have been a longstanding bug, but one which has been made more of a problem by #3932 and #3933).

(This was originally done by Erik as part of #3933. I'm cherry-picking it because really it's a fix in its own right)

erikjohnston and others added 3 commits September 26, 2018 12:32
It used to try and produce an estimate, which was sometimes negative.
This caused metrics to be sad, so lets always just calculate it from
scratch.

(This appears to have been a longstanding bug, but one which has been made more
of a problem by #3932 and #3933).

(This was originally done by Erik as part of #3933. I'm cherry-picking it
because really it's a fix in its own right)
@richvdh richvdh merged commit 4e8276a into develop Sep 26, 2018
@hawkowl hawkowl deleted the rav/fix_expiring_cache_len branch September 26, 2018 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants