tursodatabase / tursodatabase/libsql
Add timeout to embedded replica sync
Open
Nobody has claimed this yet.
bug
Embedded Replicas
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
Let's add a timeout to embedded replica sync so that we don't hang a sync() call if there's a network issue.
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.
Research direction
The issue names the embedded replica sync() entry point but no files or tests. Locate the implementation of sync(), inspect how network failures are handled, and identify the existing sync-related tests. Done means a network problem no longer leaves sync() hanging indefinitely and the timeout behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, sqlite
- Domain
- databases, distributed-systems, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100