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

Server error with concurrent requests #24

Open
sebastianneubauer opened this issue Jan 30, 2018 · 0 comments
Open

Server error with concurrent requests #24

sebastianneubauer opened this issue Jan 30, 2018 · 0 comments

Comments

@sebastianneubauer
Copy link
Member

sebastianneubauer commented Jan 30, 2018

If there are multiple concurrent identical requests one can trigger a server error due to a race condition:

[...] in create_postgres_db cur.execute(create_role) 
IntegrityError: duplicate key value violates unique constraint "pg_authid_rolname_index" 
DETAIL: Key (rolname)=(test_postgraas_delete_user) already exists.

Could be solved by introducing a lock or semaphore.

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