Skip to main content

restore_offsets

Function restore_offsets 

Source
pub async fn restore_offsets(
    capture: &str,
    bootstrap_server: &str,
    dry_run: bool,
    archive: &ArchiveArgs,
) -> OperationReport<usize>
Expand description

Commit a capture’s group offsets into a restored cluster.

§Errors

The report result returns BackupError::Integrity when the captured offsets do not match their recorded digest, BackupError::Cluster when the cluster refuses a commit, and the archive’s own error when the capture cannot be read.