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

Bypass 409 concurrentmodificationexception and overwrite the resource #251

Open
dotnetpro9 opened this issue Sep 26, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@dotnetpro9
Copy link

Is your feature request related to a problem? Please describe.
For StoreUpdate, we are facing concurrentmodificationexception where in users update the store data manually but the source of truth is different, and while integration is trying to update the resource it is throwing 409 concurrentmodificationexception

Describe the solution you'd like
Somehow bypass it when a flag is set to true to accept overwriting the resource

@dotnetpro9 dotnetpro9 added the enhancement New feature or request label Sep 26, 2023
@ijn-kruso
Copy link

Hi @dotnetpro9

If you're still having issues with this, we implemented a fix in our solution where we catch concurrent modification errors, parse the current version from the exception, and retries with the new version.

We only use this in places where we don't care about the previous version though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants