Recover replicas from compacted shard history

This commit is contained in:
Meta Vens 2026-05-19 21:07:46 +01:00
commit c2b2239853
9 changed files with 486 additions and 10 deletions

View file

@ -60,7 +60,9 @@ cursors can be stored with `ICultNetShardReplicaCursorStore`. Authoritative
shard logs can be persisted with `ICultNetShardMutationLogStore`; the file
implementation stores one MessagePack log per shard so catch-up survives a
primary restart. Compacted history returns an explicit resync requirement so a
replica can fall back to a snapshot before applying newer log entries.
replica can fall back to a shard-bounded snapshot before applying newer log
entries. Applying that snapshot replaces the local shard view and advances the
replica cursor to the snapshot's represented log sequence.
### Simulation Witness Consensus