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

Errors in memory dsn #1159

Open
3 of 6 tasks
egorsmth opened this issue Dec 5, 2022 · 1 comment
Open
3 of 6 tasks

Errors in memory dsn #1159

egorsmth opened this issue Dec 5, 2022 · 1 comment
Labels
bug Something is not working.

Comments

@egorsmth
Copy link

egorsmth commented Dec 5, 2022

Preflight checklist

Describe the bug

Sometimes there is exception database table is locked: keto_uuid_mappings when running Keto with DSN=memory. I need to run in memory for tests. I guess there is some issue with sqlite configs.

Reproducing the bug

The error is not stable so I couldn't reproduce it.
Run keto with DSN=memory

Relevant log output

database table is locked: keto_uuid_mappings`

Relevant configuration

DSN=memory

Version

0.10.0-alpha.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker

Additional Context

No response

@egorsmth egorsmth added the bug Something is not working. label Dec 5, 2022
@zepatrik
Copy link
Member

AFAIK sqlite has problems with parallel queries. Can you try reducing the number of parallel requests in your test? In case you want to parallelize your tests, it would be better to use postgres or multiple Keto instances with sqlite in-memory. Cockroachdb also allows running in-memory iirc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants