tursodatabase / tursodatabase/libsql
Double close on local database
Open
@LucioFranco is already working on this.
Since Mar 11, 2024.
bug
Embedded Replicas
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
2024-03-11T14:45:53.237002Z ERROR tests::embedded_replica: sqlite error 21: API call with invalid database connection pointer
2024-03-11T14:45:53.237729Z ERROR tests::embedded_replica: sqlite error 21: misuse at line 180340 of [17129ba1ff]
2024-03-11T14:45:53.246094Z ERROR tests::embedded_replica: sqlite error 17: statement aborts at 59: [INSERT OR REPLACE INTO namespace_configs (namespace, config) VALUES (?1, ?2)] database schema has changed
https://github.com/tursodatabase/libsql/blob/main/libsql/src/local/connection.rs#L80-L85
We should check the return of this and see why it errors.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.