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
fix(rust_brain): preserve HLC on snapshot restore and gossip receive
restore_from_file() dropped HLC timestamps from snapshots, assigning fresh
(wall, 0, uuid) values instead. After disaster recovery, any causal
successor write with the pre-crash HLC was rejected with TimestampRegression,
causing silent data loss on replay/gossip.
- Add _parse_hlc() for wire/snapshot normalisation with legacy fallback
- restore_from_file: restore hlc, update global _hlc, hold lock during restore
- bulk_write: pass through hlc from row payloads
- gossip.receive: apply hlc, reject stale overwrites, skip missing-hlc updates
Regression tests cover snapshot round-trip and gossip HLC ordering.
Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
0 commit comments