Skip to main content

Module error

Module error 

Source
Expand description

The one error type the tool reports, and the exit codes it maps onto.

A runbook branches on $?, so the numbers are fixed here and stated in the crate README and in docs/operations/backup-restore.md. They are chosen to sit beside krabka restore’s own: 2 is a bad argument in both tools, 4 is an unreadable archive in both, and 5 is an integrity failure in both.

Enums§

BackupError
Everything that can stop a capture, a verification, or an offset restore.

Constants§

EXIT_BAD_ARGUMENT
Exit code for a bad argument, or a flag set that contradicts itself.
EXIT_CLUSTER
Exit code for a cluster that could not be reached, or that refused.
EXIT_INTEGRITY
Exit code for a captured artifact that does not match its recorded digest.
EXIT_STALE_METADATA
Exit code for a node whose only metadata checkpoint is the format-time one.
EXIT_UNREADABLE
Exit code for an archive or a log directory that cannot be read.