frequent Sync(InvalidPushFrameConflict(n, n))

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

Maintainers usually reply within 11 days

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
C
Stars
17.3k
Forks
562
Avg merge
10d 15h
Merged PRs (30d)
1

Getting set up

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.

More from tursodatabase/libsql

All issues in tursodatabase/libsql

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.