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

timeline: prevent deadlock in populate_initial_user_receipt #3353

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Apr 23, 2024

Follow-up to 13cc796. Same thing would happen when populating the initial user receipts, with the populate_initial_user_receipt re-attempting to take the state lock while it was already taken.

Includes a regression test.

@bnjbvr bnjbvr requested a review from a team as a code owner April 23, 2024 08:41
@bnjbvr bnjbvr requested review from andybalaam and removed request for a team April 23, 2024 08:41
This makes the API less weird, and is more consistent with other read
receipts methods.
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.62%. Comparing base (5e347ce) to head (b6ec132).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3353      +/-   ##
==========================================
+ Coverage   83.61%   83.62%   +0.01%     
==========================================
  Files         241      241              
  Lines       24910    24907       -3     
==========================================
+ Hits        20828    20829       +1     
+ Misses       4082     4078       -4     

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

Copy link
Contributor

@andybalaam andybalaam 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, thanks!

@bnjbvr bnjbvr merged commit 9547e3c into main Apr 23, 2024
35 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/oopsy-state-deadlock2 branch April 23, 2024 11:19
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.

2 participants