tursodatabase / tursodatabase/libsql

frequent Sync(InvalidPushFrameConflict(n, n))

Open
#2,122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently offline mode is untenable with horizontal scaling. When a user is making updates... and the load balancer switches from server A to server B, turso sync fails.

I'm seeing a lot of Sync(InvalidPushFrameConflict(585, 595)) errors.

If I delete the sqlite (libsql) files from the disk, the remote turso primary restores things to a working order, albeit with partially lost data (not a big deal in my use case). However, if I don't delete the files from disk... the DB is stuck with a bad sync and never recovers on its own.

PS: Please take this constructively. You guys are doing God's work and Turso is amazing. Hope this feedback helps.

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 no files, tests, or entry points. Reproduce offline sync while a load balancer switches between horizontally scaled servers, then investigate handling of Sync(InvalidPushFrameConflict(...)). Done should mean the database recovers without deleting local SQLite files or partially losing data.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.