Skip to content

Add a golden on-disk fixture for pre-extraction Raft log/snapshot directories #1689

Open

Description

@bplatz

Raised in review of #1678.

Gap

No test opens a Raft log or snapshot directory written by the pre-extraction binary through fluree-raft-core. The extraction moved storage/fs.rs, storage/memory.rs and http.rs into the new crate, and every existing storage test writes and reads with the same (post-move) code, so on-disk compatibility is asserted by construction rather than by test.

Why this is insurance rather than a finding

Compatibility does hold today, and the review checked it:

  • storage/fs.rs, storage/memory.rs and http.rs are 100%-similarity renames.
  • The entry payload is still postcard::to_allocvec(entry) of an unchanged Entry<TypeConfig>.
  • The ownership digest — a wire format, since nodes that disagree can both claim the same key — is pinned against a frozen copy of the pre-extraction implementation over thousands of key pairs.

So nothing is known to be broken. The value is in catching the next refactor, where the renames will no longer be 100% similarity and nothing will notice a layout change until a production node fails to reopen its own log.

Ask

A small golden on-disk fixture under fluree-raft-core/tests/: a committed log directory and a snapshot captured from a known-good build, opened through the current FsRaftStorage with assertions on the recovered entries, committed index, and snapshot payload. Cheap to add once, and it makes the storage layout an explicit contract rather than an emergent one.

Origin

Review of #1678 (extract fluree-raft-core and add a replicated kv fragment; fix two waiter-map defects).

Activity

  1. added
    area:storage
    P3
    on Aug 26, 2026
  2. added this to the 5.0.0 milestone on Nov 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

    P3area:storage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions