Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zero-cache): auto-reset replica if upstream is reset #3457

Merged

Conversation

darkgnotic
Copy link
Contributor

Automatically wipe the replica and rerun initial sync if the upstream DB has been reset (e.g. replication slot is missing, or shard schema is gone).

This handles a common pattern of developers clearing their upstream DB but not clearing their replica file. The system now recovers from this automatically by clearing the replica file and retrying, obviating the need for developers to know about the replica file (e.g. it may be in a docker volume).

@darkgnotic darkgnotic requested a review from aboodman December 27, 2024 23:33
Copy link

vercel bot commented Dec 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
replicache-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2024 11:33pm
zbugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2024 11:33pm

@darkgnotic darkgnotic enabled auto-merge (squash) December 27, 2024 23:35
@darkgnotic darkgnotic merged commit 09d6072 into main Dec 27, 2024
9 checks passed
@darkgnotic darkgnotic deleted the darkgnotic/auto-reset-replica-when-upstream-is-reset branch December 27, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant