Skip to content

fix(backup): include cold history and verification copies in space checks #1286

Closed

Description

@frahlg

PR #1261 passes zero extra bytes to its backup-space check before collecting cold Parquet and other persistent files. A filesystem that holds the SQLite copy but not the whole archive can pass and fill during export.

The multiplier also misses one verification phase: the staged database gzip, outer archive, copied database gzip and decoded database coexist. Without assuming compression, reserve four database copies plus room for archive extras and the temporary Parquet verification file.

This is a candidate regression identified at cee71eaf825d26b4281fece52c243cb32fd614c2, not a shipped-beta claim.

Acceptance: inventory regular source files before database export; exclude the output directory and database sidecars as the archive does; fail early on a synthetic capacity limit that omits cold history. Leave no partial export. Check the largest coexistence phase independently. Existing backups remain untouched.

Activity

  1. frahlg commented on Oct 18, 2026

    @frahlg
    MemberAuthor

    Current master inventories extras before export and reserves the raw/gzip/verification coexistence space. TestCreateChecksColdFilesBeforeExport, TestBackupArchiveScratchReservesRawGzipAndVerify, TestEnsureDiskSpaceRejectsShortFilesystem and TestBackupToCompressedPreflightUsesSourceSize passed three times with the race detector. The cold-file preflight test includes real Parquet and pairing-file bytes and checks that failure leaves no partial export.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions