electric-sql / electric-sql/electric

Cleanup orphaned storage instances

Open
#3,759 0 comments 0 reactions 1 assignee Claimed by @magnetised View on GitHub
Dominant language
TypeScript
Stars
10.4k
Forks
375
Avg merge
3d 1h
Merged PRs (30d)
18

Description

With shape metadata now in a in-memory queue before being written, its possible for shape data to become orphaned if the system crashes between creating a shape and persisting the shape metadata to sqlite.

We should have some low-priority background task that launches at startup and compares existing storage instances with the shape handles known by the system and uses the Storage cleanup function to remove orphaned data.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.