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

Added missing locks and use timeout on all of them in ObjectCacheAppCache #15902

Merged

Conversation

bergmania
Copy link
Member

@bergmania bergmania commented Mar 18, 2024

Description

This PR ensures we have locks every time we interfere with the memory cache and hashset. Further, to ensure we do not potentially end in infinite deadlocks, I added a timeout to all of them

Fixes a comment here #15173 (comment)

Test

Ensure the cache still works.. I would expect the test suites to test this pretty intensive.

Ultimately, this fix is due to our hunt for the issue where the hashset suddenly is out of sync with the memory cache. So what ever you can think of as a test, would be nice.

Copy link
Contributor

@nikolajlauridsen nikolajlauridsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and I've tried to abuse it as much as I can and can't seem to make it break 🎉

@nikolajlauridsen nikolajlauridsen merged commit 1e69695 into v14/dev Mar 19, 2024
15 checks passed
@nikolajlauridsen nikolajlauridsen deleted the v14/bugfix/missing-locks-in-ObjectCacheAppCache branch March 19, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants