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

feat: handle receivers counter race condition #4290

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chadys
Copy link
Contributor

@Chadys Chadys commented Apr 23, 2024

The race condition when updating a counter can be solved by simply retrying the update operation if the creation fails because it was created faster from somewhere else.
(PS: this is my last one in the set of contributions I planned to make in a row)

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Merging #4290 (d6e521b) into master (204b9a7) will increase coverage by 0.07%.
Report is 11 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4290      +/-   ##
==========================================
+ Coverage   88.28%   88.36%   +0.07%     
==========================================
  Files         293      293              
  Lines       16046    16094      +48     
==========================================
+ Hits        14166    14221      +55     
+ Misses       1880     1873       -7     
Files Coverage Δ
src/oscar/apps/analytics/receivers.py 91.07% <100.00%> (ø)

... and 9 files with indirect coverage changes

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.

None yet

1 participant