Skip to content
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

[SnapshotV2] Snapshot Status API changes #15463

Closed
ltaragi opened this issue Aug 28, 2024 · 1 comment · Fixed by #15409 or #15624
Closed

[SnapshotV2] Snapshot Status API changes #15463

ltaragi opened this issue Aug 28, 2024 · 1 comment · Fixed by #15409 or #15624
Assignees
Labels
enhancement Enhancement or improvement to existing feature or request Storage:Snapshots v2.17.0

Comments

@ltaragi
Copy link
Contributor

ltaragi commented Aug 28, 2024

Is your feature request related to a problem? Please describe

As part of V2 snapshots, we require optimisations for the Snapshot Status API

Describe the solution you'd like

  • Allow index filter in the status API if the request contains only one snapshot name. Thus, the status API response will only consist of the specified indices in the filter (if any). Throw IndexNotFoundException in case an index name is not found in the provided snapshot.
  • For shallow snapshots of type V2, the file count and size stats are 0 at all levels.
  • For other snapshots: The status API call works only if the total number of shards across the requested resources (snapshots or the indices of a particular snapshot) is less than a certain amount determined by the cluster setting snapshot.max_shards_allowed_in_status_api

Related component

Storage:Snapshots

Describe alternatives you've considered

No response

Additional context

No response

@ltaragi
Copy link
Contributor Author

ltaragi commented Sep 3, 2024

The primary store size at the time of snapshot creation can be persisted in SnapshotInfo.java, and used to return the total size of the snapshot in bytes in the status response for shallow V2 snapshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Storage:Snapshots v2.17.0
Projects
Status: ✅ Done
1 participant