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

Race condition with couchdb.create exists_ok=True #42

Closed
starlord-daniel opened this issue Jan 24, 2022 · 1 comment · Fixed by #44
Closed

Race condition with couchdb.create exists_ok=True #42

starlord-daniel opened this issue Jan 24, 2022 · 1 comment · Fixed by #44

Comments

@starlord-daniel
Copy link

In our project we found that if you are calling the couchdb.create method with exists_ok set to True, then it could happen, that you still get the following error:

raise exception_type(message.format(**message_input)) from exception
aiocouch.exception.PreconditionFailedError: Database already exists

This should not happen, as we are already ok with the database existing.

I've will open a PR to address this and link it HERE
Please give feedback, if that solution follows the packages approach and works for you.

@bmario
Copy link
Member

bmario commented Jan 24, 2022

Thanks for the report and PR, I've worked on a solution including more tests in parallel though.

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

Successfully merging a pull request may close this issue.

2 participants