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

Assertion !FileSystem::Get(db).FileExists(GetWALPath()) failed #368

Open
jhpratt opened this issue Aug 3, 2024 · 0 comments
Open

Assertion !FileSystem::Get(db).FileExists(GetWALPath()) failed #368

jhpratt opened this issue Aug 3, 2024 · 0 comments

Comments

@jhpratt
Copy link

jhpratt commented Aug 3, 2024

buffdb: crate-location/target/debug/build/libduckdb-sys-2e3bca8a7143e85a/out/duckdb/src/storage/storage_manager.cpp:66: int64_t duckdb::StorageManager::GetWALSize(): Assertion `!FileSystem::Get(db).FileExists(GetWALPath())' failed.
[1]    1934602 IOT instruction (core dumped)  cargo run --all-features -- run

This occurs after I insert data and then immediately try to fetch it back. The two queries are executed over the same connection (but plausibly different threads). Adding a nontrivial delay helps but very much does not guarantee success.

The error is not reliable; I'd estimate it occurs roughly half of the time. Even when this error does not occur, the newly-inserted row is not found nearly every time. Manual verification after the fact confirms that the row was inserted. DuckDB also tries to read out of bounds:

DuckDB failure: Error code 1: Unknown error code Some("IO Error: Could not read enough bytes from file \\"store.db\\": attempted to read 262144 bytes from location 1060864")

I have not the slightest clue if these are related. I am happy to split these out into separate issues if preferred. The queries being executed are as simple as they get, so I've no idea what's going on.

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

No branches or pull requests

1 participant