pub async fn verify_segment(
store: &ArchiveStore,
partition: &TopicIdPartition,
segment: &SegmentInventory,
) -> Result<VerifiedSegment, RestoreError>Expand description
Fetch and verify one segment.
ยงErrors
Returns RestoreError::TornCopy when a required artifact is absent,
RestoreError::TruncatedSegment when the log ends inside a batch,
RestoreError::ChecksumMismatch when a batch CRC disagrees with its
body, and RestoreError::ObjectStore when a fetch fails.