Module error

Module error 

Source
Expand description

Error types for the replication engine.

This module defines the error types used throughout the replication engine. Errors are categorized by their source (Redis, SQLite, etc.) and include context to help with debugging.

§Error Categories

Error TypeRetryableDescription
RedisYesNetwork errors, timeouts, connection failures
PeerConnectionYesPeer unreachable, connection dropped
SyncEngineYesSync engine temporarily unavailable
CursorStoreNoLocal SQLite errors (needs operator attention)
ConfigNoConfiguration invalid
DecompressionNoData corruption (zstd decode failed)
StreamParseNoMalformed CDC event
InvalidStateNoEngine state machine violation
ShutdownNoEngine is shutting down
InternalNoUnexpected internal error

§Retry Behavior

Use ReplicationError::is_retryable() to determine if an operation should be retried with backoff. Retryable errors indicate transient network or availability issues. Non-retryable errors indicate bugs, configuration problems, or data corruption.

Enums§

ReplicationError
Errors that can occur during replication.

Type Aliases§

Result
Result type alias for replication operations.