You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a golden on-disk fixture for pre-extraction Raft log/snapshot directories #1689
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