electric-sql / electric-sql/electric
Cleanup orphaned storage instances
Open
- 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
Assessment
This issue has not been assessed yet.