Expand description
CLI introspection tools for persist
Structsยง
- Batch
Part ๐Output - Batch
Part ๐Update - Blob
Args - Arguments for commands that run only against the blob store.
- Blob
Batch Part Args - Arguments for viewing contents of a batch part
- Blob
Counts ๐ - D ๐
- Inspect
Args - Commands for read-only inspection of persist state
- K ๐
- The following is a very terrible hack that no one should draw inspiration from. Currently State
is generic over <K, V, T, D>, with KVD being represented as phantom data for type safety and to
detect persisted codec mismatches. However, reading persisted States does not require actually
decoding KVD, so we only need their codec names to match, not the full types. For the purposes
of
persistcli inspect
, which only wants to read the persistent data, we create new types that return static Codec names, and rebind the names if/when we get a CodecMismatch, so we can convince the type system and our safety checks that we really can read the data. - O ๐
- Pretty
Bytes ๐ - State
Rollup Args - Arguments for viewing the state rollup of a shard
- T ๐
- Unreferenced
Blobs ๐ - V ๐
Enumsยง
- Command ๐
- Individual subcommands of inspect
Staticsยง
- FAKE_
OPAQUE_ ๐CODEC - KVTD_
CODECS ๐
Functionsยง
- blob_
batch_ part - Fetches the updates in a blob batch part
- blob_
counts - Fetches the blob count for given path
- blob_
usage - Returns information about blob usage for a shard
- consolidated_
size ๐ - fetch_
latest_ state - Fetches the current state of a given shard
- fetch_
state_ diffs - Fetches each state in a shard
- fetch_
state_ rollup - Fetches a state rollup of a given shard. If the seqno is not provided, choose the latest; if the rollup id is not provided, discover it by inspecting state.
- fetch_
state_ rollups - Fetches the state from all known rollups of a given shard
- run
- Runs the given read-only inspect command.
- shard_
stats - Rummages through S3 to find the latest rollup for each shard, then calculates summary stats.
- unreferenced_
blobs - Fetches the unreferenced blobs for given environment