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

Crash when caching used in multiple processes #381

Open
sandorkertesz opened this issue May 13, 2024 · 1 comment
Open

Crash when caching used in multiple processes #381

sandorkertesz opened this issue May 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sandorkertesz
Copy link
Collaborator

What happened?

When earthkit-data is used simultaneously in multiple processes to retrieve fdb data it crashes with:

OperationalError('database is locked')

It comes from the sqlite database used for indexing the cached files.

This happens when caching-policy is "user". In this case each process running under the same account uses the same cache area/database.

What are the steps to reproduce the bug?

See above

Version

lates

Platform (OS and architecture)

all

Relevant log output

No response

Accompanying data

No response

Organisation

No response

@sandorkertesz sandorkertesz added the bug Something isn't working label May 13, 2024
@sandorkertesz sandorkertesz self-assigned this May 13, 2024
@sandorkertesz
Copy link
Collaborator Author

sandorkertesz commented May 13, 2024

Could not reproduce this issue when retrieving MARS data or downloading data from URLS using 12 processes on a MacBook.

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

No branches or pull requests

1 participant