Skip to main content

deserialize_metadata_snapshot

Function deserialize_metadata_snapshot 

Source
pub fn deserialize_metadata_snapshot(
    bytes: &[u8],
) -> Result<Vec<MetadataRecord>, RaftError>
Expand description

Decode the KIP-630 metadata records from a Kafka metadata snapshot.

KIP-853 quorum controls are intentionally omitted: a restore formats a new quorum, while the returned records describe the cluster state it recovers.

ยงErrors

Returns an error when the snapshot framing, ordering, or a metadata record is invalid.