Skip to content

Interrupted first SQLite history binding prevents restart #1251

Closed

Description

@frahlg

An interrupted first SQLite history binding can prevent all later starts. migrateSQLiteHistory commits the generation marker in history.db before state.db selects it. On the next boot, Core treats its own completed copy as unrelated unbound history.

Reproduced on PR #1248 at 118b268 by failing the final history_sqlite_generation save after the history marker commits. TestSQLiteInitialBindingResumesAfterInterruptedSave fails for empty and populated history with both foreground and background import.

Persist the intended generation in state.db before copying. A retry may bind only that exact generation after validating completion; it must still reject an unrelated history file. Clear the pending marker after the durable binding succeeds.

Activity

  1. added
    release-blocker
    on Sep 14, 2026
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

    release-blocker

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions