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

Concurrent checkouts lead to incorrect 'num_allocated' stocks #2102

Closed
TWarszawski opened this Issue Aug 17, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@TWarszawski
Copy link

TWarszawski commented Aug 17, 2016

When two customers check out concurrently for the same product, only one of the checkouts is reflected in the num_allocated field.

Steps to reproduce:

  1. Start sandbox, create two customers, create/pick test product.
  2. Both customers add the product to their baskets and perform a checkout concurrently, making sure both customers finish checkout (click the Place Order button) as close to the same time as possible.

We have reproduced this behavior on a single machine, by performing the above steps with one customer in one browser window and another customer in a second browser window.

Expected Result:
The num_allocated for the product is 2.

Actual Result:
The num_allocated for the product is 1.

@sasha0

This comment has been minimized.

Copy link
Member

sasha0 commented Oct 3, 2016

Thanks for the report.

I'll try to re-create with a test.

@digicase

This comment has been minimized.

Copy link
Contributor

digicase commented Oct 4, 2016

There is another issue from last year discussing this #1811

@sasha0

This comment has been minimized.

Copy link
Member

sasha0 commented Feb 20, 2017

Closing as a duplicate of #1811.

@sasha0 sasha0 closed this Feb 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment