Expand description
Pure, safety-critical decision kernels used by krabka-broker.
Keeping these small arithmetic decisions here lets Creusot prove the exact executable bodies used by the asynchronous broker.
Structs§
- Delete
Records Trim Facts - Offset facts used to admit one
DeleteRecordstrim. - Fetch
Visibility - Visibility bounds and response watermarks for one Fetch partition.
- Fetch
Watermarks - The partition offsets one Fetch visibility decision reads.
- Preferred
Leader Change - What a preferred-leader rebalance scan observed about one change it wants to submit.
- Replica
Fetch Facts - What a follower knows about one row of a Fetch response when it decides what that row may change.
Enums§
- Delete
Records Trim Application - The next idempotent step while reconciling WAL and local trim frontiers.
- Delete
Records Trim Decision - The complete boundary decision for one
DeleteRecordstrim. - Find
Coordinator Admission - The complete per-key admission outcome for
FindCoordinator. - Replica
Fetch Mutation - The only direct mutation class selected from one follower Fetch response.
Functions§
- delete_
records_ trim_ application - Choose one monotonic trim step, with WAL ordered before the local log.
- delete_
records_ trim_ decision - Admit a trim and cap it at every logical deletion frontier.
- effective_
share_ backlog - fetch_
visibility - Compute Kafka’s consumer/follower Fetch visibility window.
- find_
coordinator_ admission - Decide whether one
FindCoordinatorkey may proceed to coordinator lookup. - java_
string_ hash_ partition - Java
String.hashCodeover UTF-16 code units, followed by Kafka’sUtils.abs(hash) % partition_countcoordinator selection. - preferred_
rebalance_ admission - Admit one preferred-leader rebalance batch only when it is nonempty, within the per-tick election cap, and every change in it is a KIP-460 preferred election.
- replica_
fetch_ mutation - Fence one follower Fetch response row against its in-flight request epoch, its current metadata target and any reported leader identity; then select one exclusive response action.
- unclean_
recovery_ commit_ admission - Admit an unclean-election commit only against the exact partition snapshot used to select its winner.