Skip to content

Conversation

@armru
Copy link
Member

@armru armru commented Nov 25, 2025

The ExtendedClient cache implementation was only replacing expired entries when the exact same object was requested again. Different objects (secrets and object stores) were continuously being added to the cache slice but never removed, causing unbounded memory growth.

Partially Fixes: #385

Tagging as partial fix given that this is very minor given that the objects rarely change

@armru armru requested a review from a team as a code owner November 25, 2025 16:56
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Nov 25, 2025
The cleanup routine test used time.Sleep() without actually verifying
the goroutine stopped. Added a done channel to provide deterministic
verification of goroutine termination.

Signed-off-by: Marco Nenciarini <[email protected]>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ever-increasing memory usage (memory leak?)

3 participants