Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The corrosion sync command

Debugging commands used to inspect or fix Corrosion's internal bookkeeping state.

Subcommands

corrosion sync generate

Output in-memory bookkeeping state as JSON. This is mostly used for when debugging replication, inspecting what the node sends during sync with other nodes.

corrosion sync generate

corrosion sync reconcile-gaps

This command collapses overlapping gaps (missing versions) in the database and reconciles the in-memory bookie with the data on the database.

corrosion sync reconcile-gaps

corrosion sync check-bookie-consistency

Compares in-memory bookie state with database bookie state for all actors and prints a JSON report to stdout. If the command finds mismatches (ok: false), the command fails with an error summarizing counts of value mismatches and keys only in memory vs only in DB.

corrosion sync check-bookie-consistency