tursodatabase / tursodatabase/libsql

if the machine is stopped during snapshot, can result in data loss

Open
#717 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bottomless nemesis
Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

To reproduce:

  1. Create a large DB
  2. When the snapshot upload is in progress to S3, kill the machine or libsql-server process
  3. Wipe the volume and restore from S3
  4. The restoration does not complain (#718) and when I checked in shell, it shows the data to be empty

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

Start by reproducing the failure during the S3 snapshot upload, then inspect the libsql-server snapshot and restoration paths involved after the process is killed. Verify that an interrupted snapshot cannot restore as an apparently empty database and that restoration reports the failure instead of silently succeeding.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.