Skip to content

Allow missing shard stats for restarted nodes for _snapshot/_status #4410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions specification/snapshot/status/SnapshotStatusRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ import { Duration } from '@_types/Time'
*
* If you omit the `<snapshot>` request path parameter, the request retrieves information only for currently running snapshots.
* This usage is preferred.
* Note that if a node has been restarted or has left the cluster since completing a shard snapshot the stats for that shard will be unavailable.
* Loading the stats from the repository is an expensive operation (see the WARNING below), so to minimize latency for returning stats for currently
* running snapshots the stats values will be -1 for these shards even though the "stage" value will be "DONE". A "description" field will be set
* on these shard stats instances indicating why they are empty. Note that the total stats for the index will be less than expected due to the
* missing values from these shards.
* If needed, you can specify `<repository>` and `<snapshot>` to retrieve information for specific snapshots, even if they're not currently running.
*
* WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.
Expand Down
Loading