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

Zebra requires lock on data dir #19

Open
idky137 opened this issue Dec 17, 2024 · 4 comments
Open

Zebra requires lock on data dir #19

idky137 opened this issue Dec 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@idky137
Copy link
Contributor

idky137 commented Dec 17, 2024

Zebrad requires a lock on the data dir used to load chain data. This means that tests that load a chain cache must be run individually.

One option could be to copy the chain cache data into a tempdir for each test being.

@idky137 idky137 added the bug Something isn't working label Dec 19, 2024
@zancas zancas transferred this issue from another repository Feb 4, 2025
@ala-mode
Copy link
Contributor

ala-mode commented Feb 5, 2025

Acknowledged.

@ala-mode
Copy link
Contributor

ala-mode commented Feb 5, 2025

This is a duplicate of issue #7 - closing that issue.

@nachog00
Copy link
Contributor

nachog00 commented Feb 21, 2025

@idky137
How do you replicate this issue?
Would runs of zebrad consuming tests fail if they don't get the chain cache JUST like it came out of the cache generation process?
Would they fail with some particular error message if that is the failing cause?
Would they not fail at all but the test makes no sense anymore?

@zancas
Copy link
Member

zancas commented Feb 22, 2025

This issue seems to be related to zingolabs/zaino#114 since that issue requires Zebra regtest to load a cached chain, and this one requires tests to be runnable in parallel even when the tests in question cause a zebrads to access cached chains.

@nachog00 or @ala-mode would it make sense to list the tests that are affected by chain cache locks in this issue, or in a doc-comment in the relevant test mod?

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
Status: Backlog
Development

No branches or pull requests

4 participants