Skip to content

upstream initializeV2Database leaves stale .v2-import-* temp directories #39

Description

@nohat

Found during the V2 catch-up (#36). apps/server/src/persistence/initializeV2Database.ts builds statev2.sqlite in a .v2-import-* directory next to state.sqlite and publishes by hard link. A killed first boot leaves the temp directory (about the size of state.sqlite, 1.09 GB live) and nothing removes stale ones. The data volume is about 96% full. scripts/fork/v2-cutover-prepare.ts builds the copy out of band, which avoids this on the planned path; a crash during a server-side copy is still uncovered. Upstream code; not changed in the fork.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions