commercetools / commercetools/sphere-node-sdk

Should retry on concurrent modification error

Open
#129 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
16
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### Expected behavior

If i update product and concurrent modification exception is thrown by API, SDK should use new version from API error response and retry payload. This behaviour should be configurable (i.e.: on client instantiation. Nice to have: per endpoint). More details on error: http://dev.commercetools.com/http-api-errors.html#409-conflict
### Actual behavior

It rejects with concurrent modification error from API
### Steps to reproduce the behavior

Update product attribute and publish at the same time

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.