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(common): gRPC alarms require more locking #12406

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Aug 17, 2023

Turns out grpc::Alarm is not thread-safe. The documentation is about to say so, and a future implementation will trigger more faults in our code.


This change is Reviewable

Turns out `grpc::Alarm` is not thread-safe. The documentation is about
to say so, and a future implementation will trigger more faults in our
code.
@coryan coryan temporarily deployed to internal August 17, 2023 19:55 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Patch coverage: 75.00% and no project coverage change.

Comparison is base (a9174ce) 93.62% compared to head (5d7eb5e) 93.62%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12406   +/-   ##
=======================================
  Coverage   93.62%   93.62%           
=======================================
  Files        2032     2032           
  Lines      179889   179899   +10     
=======================================
+ Hits       168421   168431   +10     
  Misses      11468    11468           
Files Changed Coverage Δ
...le/cloud/internal/default_completion_queue_impl.cc 95.16% <75.00%> (-2.00%) ⬇️

... and 5 files with indirect coverage changes

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

@coryan coryan marked this pull request as ready for review August 17, 2023 21:02
@coryan coryan requested a review from a team as a code owner August 17, 2023 21:02
@coryan
Copy link
Contributor Author

coryan commented Aug 18, 2023

Ping.

@coryan coryan merged commit 88c38d3 into googleapis:main Aug 18, 2023
52 of 53 checks passed
@coryan coryan deleted the fix-common-grpc-alarms-are-not-thread-safe branch August 18, 2023 14:31
coryan added a commit to coryan/google-cloud-cpp that referenced this pull request Aug 18, 2023
Turns out `grpc::Alarm` is not thread-safe. The documentation is about
to say so, and a future implementation will trigger more faults in our
code.
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.

3 participants