Skip to content

Remove orphaned shape data at boot#3860

Open
magnetised wants to merge 1 commit intomagnetised/shape-db-exclusive-modefrom
magnetised/remove-orphaned-shape-data
Open

Remove orphaned shape data at boot#3860
magnetised wants to merge 1 commit intomagnetised/shape-db-exclusive-modefrom
magnetised/remove-orphaned-shape-data

Conversation

@magnetised
Copy link
Contributor

@magnetised magnetised commented Feb 17, 2026

If the number of valid shapes is 0, then just efficiently remove the shape data directory entirely, forcing a re-creation. In the case of an ephemeral shape db this will reset the shape data alongside the reset of the shape db.

@magnetised magnetised marked this pull request as ready for review February 17, 2026 16:01
@magnetised magnetised changed the title Add exclusive mode to support AWS EFS Remove orphaned shape data at boot Feb 17, 2026
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.20%. Comparing base (12495f2) to head (80a9aa2).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                          Coverage Diff                           @@
##           magnetised/shape-db-exclusive-mode    #3860      +/-   ##
======================================================================
+ Coverage                               87.16%   87.20%   +0.04%     
======================================================================
  Files                                      25       25              
  Lines                                    2314     2314              
  Branches                                  579      582       +3     
======================================================================
+ Hits                                     2017     2018       +1     
+ Misses                                    295      294       -1     
  Partials                                    2        2              
Flag Coverage Δ
packages/experimental 87.73% <ø> (ø)
packages/react-hooks 86.48% <ø> (ø)
packages/start 82.83% <ø> (ø)
packages/typescript-client 92.10% <ø> (+0.06%) ⬆️
packages/y-electric 56.05% <ø> (ø)
typescript 87.20% <ø> (+0.04%) ⬆️
unit-tests 87.20% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@magnetised magnetised force-pushed the magnetised/shape-db-exclusive-mode branch from 2cdda99 to c8e3cea Compare February 18, 2026 09:34
@magnetised magnetised force-pushed the magnetised/remove-orphaned-shape-data branch from ec1d354 to 81fb9f9 Compare February 18, 2026 09:35
@blacksmith-sh

This comment has been minimized.

@magnetised magnetised force-pushed the magnetised/shape-db-exclusive-mode branch from c8e3cea to 75f6997 Compare February 18, 2026 10:48
@magnetised magnetised force-pushed the magnetised/remove-orphaned-shape-data branch from 81fb9f9 to aebe6df Compare February 18, 2026 10:48
@magnetised magnetised force-pushed the magnetised/shape-db-exclusive-mode branch from 75f6997 to d8d8e2f Compare February 18, 2026 11:00
@magnetised magnetised force-pushed the magnetised/remove-orphaned-shape-data branch from aebe6df to 868b6d6 Compare February 18, 2026 11:00
@blacksmith-sh

This comment has been minimized.

@magnetised magnetised force-pushed the magnetised/shape-db-exclusive-mode branch from d8d8e2f to 12495f2 Compare February 18, 2026 14:27
@magnetised magnetised force-pushed the magnetised/remove-orphaned-shape-data branch from 868b6d6 to 80a9aa2 Compare February 18, 2026 14:27
If the number of valid shapes is 0, then just efficiently remove the
shape data directory entirely, forcing a re-creation. In the case of an
ephemeral shape db this will reset the shape data alongside the reset of
the shape db.
@magnetised magnetised force-pushed the magnetised/shape-db-exclusive-mode branch from 12495f2 to 59ba3da Compare February 18, 2026 16:23
@magnetised magnetised force-pushed the magnetised/remove-orphaned-shape-data branch from 80a9aa2 to 90e81f6 Compare February 18, 2026 16:24
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

Comments