docs/agent_guides/streaming-system/wal/recovery-storage.md
Persists WAL consumer state to the catalog (etcd) and object storage. Core invariant: from any WAL position + the corresponding persisted state, RecoveryStorage can replay the WAL forward and recover a fully consistent in-memory state.
MessageID (= LastConfirmedMessageID of last consumed message), TimeTick, ReplicateCheckpoint (for secondary clusters), AlterWalState (for WAL backend migration).recoverRecoveryInfoFromMeta): Load checkpoint, VChannel metadata, and segment assignments from catalog in parallel.recoverFromStream): Build a RecoveryStream from the checkpoint's MessageID to the current WAL position. Replay all messages to reconstruct in-memory state. Extract uncommitted TxnBuffer.internal/streamingnode/server/wal/recovery/ — RecoveryStorage, RecoverySnapshot, WALCheckpoint, background persist taskinternal/streamingnode/server/flusher/flusherimpl/ — WALFlusherImpl, segment data flush to object storage