Skip to content

fix(cli): mark snapshot verify --parallel as deprecated and no-op - #5552

Open
v3t3a wants to merge 1 commit into
kopia:masterfrom
v3t3a:fix/snapshot-verify-parallel-flag
Open

fix(cli): mark snapshot verify --parallel as deprecated and no-op#5552
v3t3a wants to merge 1 commit into
kopia:masterfrom
v3t3a:fix/snapshot-verify-parallel-flag

Conversation

@v3t3a

@v3t3a v3t3a commented Aug 8, 2026

Copy link
Copy Markdown

--parallel has had no effect on snapshot verify since #1921, which merged the tree-walk and file-verification parallelism into the single VerifierOptions.Parallelism field and wired it to --file-parallelism. verifyCommandParallel has had no reader since then: the flag parses, advertises a default of 8, and is silently discarded.

The Consistency documentation page still recommends --parallel=10 in four places, so users following it believe they are tuning something.

Follow the existing convention in this file for --all-sources: hide the flag, label it as having no effect, and log a deprecation message when it is passed. Dropping Default("8") lets the zero value distinguish an explicit --parallel from an absent one, and stops the help text from advertising a default that does nothing. The flag still parses, so existing scripts and cron jobs keep working.

Restoring a separate tree-walk parallelism knob would be the alternative fix, but that reverses a deliberate simplification and changes the public snapshotfs.VerifierOptions surface, so it is left to maintainers.

`--parallel` has had no effect on `snapshot verify` since kopia#1921, which
merged the tree-walk and file-verification parallelism into the single
`VerifierOptions.Parallelism` field and wired it to `--file-parallelism`.
`verifyCommandParallel` has had no reader since then: the flag parses,
advertises a default of 8, and is silently discarded.

The Consistency documentation page still recommends `--parallel=10` in
four places, so users following it believe they are tuning something.

Follow the existing convention in this file for `--all-sources`: hide the
flag, label it as having no effect, and log a deprecation message when it
is passed. Dropping `Default("8")` lets the zero value distinguish an
explicit `--parallel` from an absent one, and stops the help text from
advertising a default that does nothing. The flag still parses, so
existing scripts and cron jobs keep working.

Restoring a separate tree-walk parallelism knob would be the alternative
fix, but that reverses a deliberate simplification and changes the public
`snapshotfs.VerifierOptions` surface, so it is left to maintainers.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@v3t3a
v3t3a requested a review from a team August 8, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant