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 #15409

Merged
merged 8 commits into from
Sep 3, 2024

Conversation

ltaragi
Copy link
Contributor

@ltaragi ltaragi commented Aug 26, 2024

Description

This PR contains the necessary changes to Snapshot Status API as part of V2 snapshots:

  • 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 Issues

Resolves #15463

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Contributor

❌ Gradle check result for b0c0c7c: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 1a5fa32: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 513732d: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Storage:Snapshots v2.17.0 labels Aug 28, 2024
@ltaragi ltaragi self-assigned this Aug 28, 2024
Copy link
Contributor

❌ Gradle check result for dba91db: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 74468bd: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for b5cab5b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@ltaragi ltaragi force-pushed the snapshot-status branch 2 times, most recently from 9623803 to 138ca7c Compare August 30, 2024 08:02
Copy link
Contributor

❌ Gradle check result for 2c59e24: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 9623803: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for 138ca7c: SUCCESS

ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 3, 2024
---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 3, 2024
---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 3, 2024
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
@ltaragi ltaragi mentioned this pull request Sep 3, 2024
3 tasks
Bukhtawar pushed a commit that referenced this pull request Sep 3, 2024
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 3, 2024
---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 3, 2024
…ject#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit a60b668)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 4, 2024
---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 4, 2024
…ject#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit a60b668)
ashking94 pushed a commit that referenced this pull request Sep 4, 2024
* [SnapshotV2] Snapshot Status API changes (#15409)

---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)

* Remove breaking changes from #15409 (#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit a60b668)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 4, 2024
…ct#15624 to 2.x (opensearch-project#15595)

* [SnapshotV2] Snapshot Status API changes (opensearch-project#15409)

---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)

* Remove breaking changes from opensearch-project#15409 (opensearch-project#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit a60b668)
(cherry picked from commit 01b38be)
ltaragi added a commit to ltaragi/OpenSearch that referenced this pull request Sep 4, 2024
…ct#15624 to 2.x (opensearch-project#15595)

* [SnapshotV2] Snapshot Status API changes (opensearch-project#15409)

---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)

* Remove breaking changes from opensearch-project#15409 (opensearch-project#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit a60b668)
(cherry picked from commit 01b38be)
sachinpkale pushed a commit that referenced this pull request Sep 4, 2024
---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 925f41b)

* Remove breaking changes from #15409 (#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit a60b668)
(cherry picked from commit 01b38be)

* Change version to V_2_17_0 (#15596) (#15642)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
(cherry picked from commit 0f53bf9)
(cherry picked from commit d368e3b)
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
---------

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
…ject#15624)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch backport-failed enhancement Enhancement or improvement to existing feature or request Storage:Snapshots v2.17.0
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[SnapshotV2] Snapshot Status API changes
2 participants