tursodatabase / tursodatabase/libsql

Add timeout to embedded replica sync

Open
#1,224 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.