Skip to main content

Module commit_policy

Module commit_policy 

Source
Expand description

Primary commit policies (PLAN.md Phase 11.4).

Local — commit returns after the local WAL is durable (default; current behaviour). No replica involvement at commit time.

RemoteWal — commit returns after the WAL segment containing the transaction has been archived to the remote backend. Bounds durability to “survives a single-node loss as long as the remote is reachable”.

AckN(n) — commit returns after n replicas have ack’d the transaction’s LSN via ack_replica_lsn. n=0 is equivalent to Local. The primary blocks the commit response until the count is met or RED_REPLICATION_ACK_TIMEOUT_MS elapses.

Quorum — commit returns after the configured QuorumConfig reaches its durable commit watermark.

RemoteWal has no durable publication waiter yet and is rejected before mutation. Synchronous timeouts report an uncertain replica outcome after local commit; RED_COMMIT_FAIL_ON_TIMEOUT no longer weakens the policy.

Enums§

CommitPolicy