pub struct LeasedShard {
pub epoch: u64,
pub expires_at_ms: u64,
pub acked_epoch: u64,
pub authority_generation: Option<u64>,
pub acked_authority_generation: Option<u64>,
pub relay_watermark_ms: u64,
pub sweep_due_ms: u64,
}Expand description
The coordinator’s durable lease grant and installation acknowledgement.
acked_epoch = n means the shard durably holds epoch at least n, or
every older-epoch write is already past its deadline. A live row’s
acknowledgement is preserved by renewal and raised only after a
committed shard push. An absent or expired row may acknowledge its grant
immediately because older writes are past their commit deadlines.
Fields§
§epoch: u64Epoch granted by the most recent renewal.
expires_at_ms: u64Granted expiry; identical to the shard copy at grant.
acked_epoch: u64Epoch whose installation in the shard has been acknowledged.
Authority generation granted alongside the epoch.
Raised only after a committed push, or expiry of every older lease.
relay_watermark_ms: u64Greatest source relay lower bound observed for this shard.
sweep_due_ms: u64Due time of the one sweep timer owned by this row.