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

Protect declaredRuntimeMetadata with a sync.Mutex #2733

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Dec 12, 2024

This should fix the immediate issue. We should probably refactor this to avoid the global, but that can be done later.

Fixes #2728

This should fix the immediate issue. We should probably refactor this to avoid the global,
but that can be done later.

Fixes #2728
@iwahbe iwahbe requested review from t0yv0 and a team December 12, 2024 10:51
@iwahbe iwahbe self-assigned this Dec 12, 2024
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.57%. Comparing base (6af66d0) to head (454428a).
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2733      +/-   ##
==========================================
- Coverage   69.57%   69.57%   -0.01%     
==========================================
  Files         301      301              
  Lines       38654    38658       +4     
==========================================
+ Hits        26893    26895       +2     
- Misses      10242    10245       +3     
+ Partials     1519     1518       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@t0yv0
Copy link
Member

t0yv0 commented Dec 12, 2024

Excellent ty.

Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

There's also sync.Map or somesuch FWIW.

@iwahbe
Copy link
Member Author

iwahbe commented Dec 13, 2024

There's also sync.Map or somesuch FWIW.

sync.Map is a map[any]any under the hood, I'd rather have the type safety then the concurrency safety.

@iwahbe iwahbe merged commit f7f43b6 into master Dec 13, 2024
17 checks passed
@iwahbe iwahbe deleted the iwahbe/2728/protect-declared-runtime-metadata branch December 13, 2024 09:38
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.98.0.

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.

Concurrent map write in declareRuntimeMetadata
3 participants