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

When AsyncCacheLoader.asyncLoadAll returns excess keys, wait for all keys to be added to the cache before returning requested keys #1550

Conversation

allanrodriguez
Copy link
Contributor

Fixes #1409.

Verified by running the getAll_exceeds test with the ForkJoinPool executor. Running this test configuration before the change would fail sporadically due to a race between the excess entries being added to the cache and the cache size assertion.

…l keys to be added to the cache before returning requested keys

Fixes ben-manes#1409.
@ben-manes ben-manes merged commit 7f82472 into ben-manes:master Feb 25, 2024
140 checks passed
@ben-manes
Copy link
Owner

looks perfect, thanks!

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.

Unnecessary fetches when using asynchronous bulk load
2 participants