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

Fix bug in dependency resolution under high concurrency #4335

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

smola
Copy link
Member

@smola smola commented Nov 28, 2022

What Does This Do

Motivation

Telemetry gets blocked (or extremely slowed down) when many classes are loaded in parallel. The standard WeakHashMap implementation seems to be the culprit, and using our WeakCache solves it.

Additional Notes

@smola smola added the comp: telemetry Telemetry label Nov 28, 2022
@smola smola requested a review from a team as a code owner November 28, 2022 17:29
@smola smola changed the title Fix bug in dependency resolving under high concurrency Fix bug in dependency resolution under high concurrency Nov 28, 2022
@smola smola force-pushed the smola/telemetry-inst-overhead branch 3 times, most recently from 3f238e5 to 5707436 Compare November 28, 2022 17:49
Copy link
Contributor

@mcculls mcculls left a comment

Choose a reason for hiding this comment

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

+1

if you could replace the get+put with computeIfAbsent that would be even better :)

@smola smola force-pushed the smola/telemetry-inst-overhead branch 3 times, most recently from 6e7bfa7 to df98774 Compare November 28, 2022 18:35
@smola smola force-pushed the smola/telemetry-inst-overhead branch from df98774 to d57e85d Compare November 28, 2022 18:41
@smola smola force-pushed the smola/telemetry-inst-overhead branch from d57e85d to f5c70a3 Compare November 29, 2022 08:24
@smola smola force-pushed the smola/telemetry-inst-overhead branch from f5c70a3 to 1ea71df Compare November 29, 2022 08:26
@smola smola merged commit 1056ee9 into master Nov 29, 2022
@smola smola deleted the smola/telemetry-inst-overhead branch November 29, 2022 09:15
@github-actions github-actions bot added this to the 1.2.0 milestone Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants