Skip to main content

Module cluster_state

Module cluster_state 

Source
Expand description

Projects a managed cluster’s durable catalog config into the ExpectedClusterState compare-and-append witness, and checks a witness against the current config.

project_expected is the one projection from catalog config to the witness. Building the witness the same way wherever a write is conditioned and wherever it is checked keeps the compared fields from drifting apart.

Functions§

burst_record 🔒
cluster_matches_expected 🔒
Whether cluster_id’s current managed state still equals expected. A missing or unmanaged cluster never matches. This is the compare half of the compare-and-append, evaluated inside the catalog transaction so the check and the commit cannot be separated.
on_timeout 🔒
project_expected 🔒
Project a managed cluster’s durable config into the compare-and-append witness: the fields a conditional write is conditioned on.
reconfiguration_record 🔒
reconfiguration_status 🔒