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

Add Price action returns 409 Version mismatch. Concurrent modification #16

Open
iznenad opened this issue Aug 13, 2014 · 0 comments
Open

Comments

@iznenad
Copy link
Contributor

iznenad commented Aug 13, 2014

While testing the addPrice action with this data set in the mapper:
https://www.dropbox.com/s/jika9b7z5b722pu/Screenshot%202014-08-14%2001.22.36.png

A bunch of these errors occur:
https://www.dropbox.com/s/aczg6b4bkid9y29/Screenshot%202014-08-14%2001.21.50.png

I guess the problem is that a single product version gets updated simultaneously by 15 workers.
As the request is a post with a body which consists of an array of actions, it would probably be good to accumulate the actions before executing the request.

This doesn't seem trivial to me.
https://github.com/elasticio/sphereio-api/blob/add_price_nenad/extensions/addPrice.js#L7

It could be that my guess is wrong and the problem is something different.

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

No branches or pull requests

1 participant