-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Attach fails with duckdb.IOException: IO Error: Cannot open file "foo.duckdb.wal": No such file or directory #9342
Comments
I don't think this is expected to work, checkpoint rewrites/updates the database on disk, attach looks up the database from disk There is no abstraction on top of this, when the checkpoint is being written it is likely unavailable on the filesystem - causing attach to fail Or, because you run multiple checkpoints in parallel the WAL has been replayed and promptly deleted by one checkpoint - while another expects it to still exist |
It's very surprising that this happens, though. There are two threads, and each interacts exclusively with one of the two attached databases. Does that mean that I can expend any transaction to appear in a WAL to any attached database, even if the transaction does not interact in said database in any way? |
Hmm that's fair, I hadnt considered that |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stale for 30 days with no activity. |
…penFile with FILE_FLAGS_NULL_IF_NOT_EXISTS
What happens?
Sometimes, when doing attach and detach in parallel, the attach part fails with
duckdb.IOException: IO Error: Cannot open file "foo.duckdb.wal": No such file or directory
.To Reproduce
Run the following code snippet repeatedly. Since it does parallel checkpoints, it will usually deadlock (#9341), so you'll need to kill it in that case. Sometimes (about 1 in 10 tries), though, the attach would fail with duckdb.IOException: IO Error: Cannot open file "foo.duckdb.wal": No such file or directory. Couldn't really reproduce it in another way, sorry...
OS:
Ubuntu x64 in WSL on Windows 11
DuckDB Version:
0.9.2.dev14+g0ef2a6faa2
DuckDB Client:
Python
Full Name:
Míma Hlaváček
Affiliation:
Blindspot.ai
Have you tried this on the latest
main
branch?I have tested with a main build
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: