-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Searchable Snapshot] Add Relevant Error handling for Restore API with remote_snapshot. #11840
[Searchable Snapshot] Add Relevant Error handling for Restore API with remote_snapshot. #11840
Conversation
Signed-off-by: Rishikesh1159 <[email protected]>
❌ Gradle check result for 34fb46b: 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? |
Compatibility status:Checks if related components are compatible with change 7b511b4 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/cross-cluster-replication.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/security.git] |
server/src/main/java/org/opensearch/snapshots/RestoreService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Rishikesh1159 <[email protected]>
❌ Gradle check result for 9554273: 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? |
❌ Gradle check result for 9554273: 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? |
❌ Gradle check result for 7b24b79: 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? |
Signed-off-by: Rishikesh1159 <[email protected]>
…kesh1159/OpenSearch into restore_api_error_handling
❌ Gradle check result for 25966ea: 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? |
❕ Gradle check result for 25966ea: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #11840 +/- ##
============================================
- Coverage 71.37% 71.35% -0.03%
+ Complexity 59403 59388 -15
============================================
Files 4923 4923
Lines 279214 279219 +5
Branches 40596 40597 +1
============================================
- Hits 199302 199247 -55
+ Misses 63375 63369 -6
- Partials 16537 16603 +66 ☔ View full report in Codecov by Sentry. |
@Rishikesh1159 Looks like you have conflicts and failures. Can you please iterate to green? |
Signed-off-by: Rishikesh Pasham <[email protected]>
❌ Gradle check result for 37aae66: 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? |
Signed-off-by: Rishikesh1159 <[email protected]>
❌ Gradle check result for 7b511b4: 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? |
❕ Gradle check result for 7b511b4: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Done |
|
|
7da8628
into
opensearch-project:main
…h remote_snapshot. (#11840) * Add Relevant Error handling for Restore API with remote_snapshot. Signed-off-by: Rishikesh1159 <[email protected]> * update comment with more revelant info. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * Add null check Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * fix error message in test. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> (cherry picked from commit 7da8628) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…h remote_snapshot. (#11840) (#12011) * Add Relevant Error handling for Restore API with remote_snapshot. * update comment with more revelant info. * apply spotless check. * Add null check * apply spotless check. * fix error message in test. * apply spotless check. --------- (cherry picked from commit 7da8628) Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…h remote_snapshot. (opensearch-project#11840) * Add Relevant Error handling for Restore API with remote_snapshot. Signed-off-by: Rishikesh1159 <[email protected]> * update comment with more revelant info. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * Add null check Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * fix error message in test. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]>
…h remote_snapshot. (opensearch-project#11840) * Add Relevant Error handling for Restore API with remote_snapshot. Signed-off-by: Rishikesh1159 <[email protected]> * update comment with more revelant info. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * Add null check Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * fix error message in test. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]>
…h remote_snapshot. (opensearch-project#11840) * Add Relevant Error handling for Restore API with remote_snapshot. Signed-off-by: Rishikesh1159 <[email protected]> * update comment with more revelant info. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * Add null check Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> * fix error message in test. Signed-off-by: Rishikesh1159 <[email protected]> * apply spotless check. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
This PR adds appropriate error handling in restore API path when user attempts to set
index.store.type
toremote_snapshot
directly instead of using"storage_type": "remote_snapshot"
Related Issues
Resolves #11658
Check List
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.