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

Create a save lock to prevent race condition error due to async saving of entities using jr_tunnukset table #1760

Open
Divinare opened this issue Nov 9, 2020 · 0 comments

Comments

@Divinare
Copy link
Contributor

Divinare commented Nov 9, 2020

At each endpoint dependent on "jr_tunnukset", add a lock for each endpoint e.g. "isLinkSavingInProgress". After that when a link save request is given, that lock is checked. In case of a lock is enabled, user will get a notification to try again.

Note: setting lock is needed to be done outside of transaction (so that the lock goes on immediately and not after the whole request ends)

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