Skip to main content

producer_id_block_allocation

Function producer_id_block_allocation 

Source
pub fn producer_id_block_allocation(
    broker_id_valid: bool,
    broker_registered: bool,
    requested_broker_epoch: i64,
    registered_broker_epoch: i64,
    first: i64,
    block_len: i32,
) -> ProducerIdBlockAllocationDecision
Expand description

Fence one broker generation and construct its exact positive contiguous producer-ID block without signed overflow.