-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Increment not working with parallel calls. #4892
Comments
Are you sure all 4000 calls passed and none failed? |
Again, there is no guarantee that all your calls are passing, and returning 2xx. Then if you say 2 concurrent increments cause an issue, that’s skmething else. But I’m not convinced that all your calls really are processed by the server and not dropped, throttled or else. In the case you’re describing, that would mean 2 different calls return with the same value. Which isn’t proved yet |
Upon trying to get a case where 2 different calls returning the same value, I discovered than other beforeSave hook was causing this bug, |
Issue Description
Increment op not working with concurrent calls
Steps to reproduce
Do this:
Expected Results
a value of 4000 in the cost attribute
Actual Outcome
3562
Environment Setup
Server
Database
Logs/Trace
No error logs no nothing,
The text was updated successfully, but these errors were encountered: