Skip to content

Prevent stale checkpoint journals from corrupting cloud previews #25

Closed

Description

@camerontaylor

When a checkpoint writes a snapshot but exits before removing the journal, cloud preview/inventory projection can replay messages and metadata already contained in the snapshot. A snapshot with messages 1–100 and stale journal entries 1–50 can show 71–100 followed by 1–50 instead of the latest 80 messages. Title, model and timestamps can also move backward.

Apply the same stale-prefix and message-ID filtering as Rust journal replay before updating projected metadata or the bounded preview. Preserve new entries, partial overlap and damaged/glued-journal recovery.

Reported in #21 (comment).

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