-
Notifications
You must be signed in to change notification settings - Fork 162
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
File locks flaky on Windows? #449
Comments
I'm pretty sure this is a race in your tests. I added some debug logging, ran it on a Windows laptop, and it shows that you're opening "regtest\index.redb" a second time before the first one is closed. I can make a branch with the code, if you need |
Oh nice, good find! I'll look into it. Any idea why this would pass on Linux/MacOS but fail on Windows? Maybe there's a difference in semantics between the two platforms. |
Yah, that'd be great. |
Done. See the ord_windows branch |
Not sure. It looks like your tests maybe spawn background processes though? If so, perhaps you need to do something extra to wait for them to finish on Windows |
Figured it out: We're using Thanks for pushing that branch with debug statements! |
Ah nice. Ya, for sure! |
I've been working on enabling Windows CI for
ord
, and I'm getting some strangeDatabase already open. Cannot acquire lock.
errors. The code is unmodified between unix and windows, so I'm wondering if the file locking/unlocking code on windows is working correctly. The errors are inconsistent, so the same test might pass or fail with no code changes on different runs.The text was updated successfully, but these errors were encountered: