mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
The restore page now names restore_source_not_own for a snapshot of a restore target; a v1.0.1 release note lists both codes and calls out that an unknown volume moves from bad_request (exit 2) to volume_not_found (exit 1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
978 B
Markdown
14 lines
978 B
Markdown
# v1.0.1 typed refusal codes of the chunk CLI
|
|
|
|
Scripts that read `sw-block ops chunk` JSON answers should decide by the `code` field, never by the message text.
|
|
v1.0.1 gives two refusals a code of their own:
|
|
|
|
- **A restore refused because the snapshot names another volume's chunks** (a snapshot of a restore target):
|
|
`"code":"restore_source_not_own"`, exit 1. It was the generic `"code":"not_admitted"`. The master marks this
|
|
refusal with a typed reason, which the CLI maps; other refusals of the same kind stay `not_admitted`.
|
|
- **A volume the master does not know** (catalog commands such as `ops chunk snapshots --volume NAME`):
|
|
`"code":"volume_not_found"`, **exit 1**. It was `"code":"bad_request"` with **exit 2**. This is a contract change
|
|
for scripts that check the exit status: exit 2 now means only a malformed command or another resolve failure.
|
|
|
|
See [restore a snapshot into a new volume](../standalone-deployment.md#restoring-a-snapshot-into-a-new-volume).
|