Skip to main content

offset_for_leader_epoch

Function offset_for_leader_epoch 

Source
pub async fn offset_for_leader_epoch(
    conn: &Connection,
    topic: &str,
    partition: i32,
    current_leader_epoch: i32,
    leader_epoch: i32,
) -> Result<EpochEndOffset, ClientError>
Expand description

Send a single-partition OffsetForLeaderEpoch request.

current_leader_epoch is the epoch the caller believes the partition is in, and the broker uses it for fencing. leader_epoch is the epoch the caller wants the end offset of.

ยงErrors

Returns an error on transport or version-negotiation failure, or when the response does not contain the partition.