-
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 Index Creation with remote_snapshot. #11867
[Searchable Snapshot] Add Relevant Error handling for Index Creation with remote_snapshot. #11867
Conversation
…_snaphot Signed-off-by: Rishikesh1159 <[email protected]>
❌ Gradle check result for 0933fe0: 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 417fe3c Incompatible componentsIncompatible components: [https://github.com/opensearch-project/custom-codecs.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git] |
Signed-off-by: Rishikesh1159 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11867 +/- ##
============================================
- Coverage 71.36% 71.33% -0.04%
- Complexity 59354 59379 +25
============================================
Files 4923 4923
Lines 279223 279226 +3
Branches 40597 40598 +1
============================================
- Hits 199271 199188 -83
- Misses 63374 63437 +63
- Partials 16578 16601 +23 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Rishikesh1159 <[email protected]>
❌ Gradle check result for be471e9: 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 be471e9: 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. |
server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Rishikesh1159 <[email protected]>
Signed-off-by: Rishikesh1159 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rishikesh1159 Let's a changelog entry under the "Fixed" section. Something like "Prevent setting remote_snapshot
store type on index creation"
Signed-off-by: Rishikesh1159 <[email protected]>
Signed-off-by: Rishikesh Pasham <[email protected]>
❌ Gradle check result for c7a9c38: 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 417fe3c: 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. |
❌ Gradle check result for c7a9c38: 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 c7a9c38: 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. |
c1bd752
into
opensearch-project:main
…with remote_snapshot. (#11867) * Block index creation when setting property index.store.type to remote_snaphot Signed-off-by: Rishikesh1159 <[email protected]> * Adding null check. Signed-off-by: Rishikesh1159 <[email protected]> * fix failing test Signed-off-by: Rishikesh1159 <[email protected]> * remove unnecessary test. Signed-off-by: Rishikesh1159 <[email protected]> * Address comments on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Resolve conflicts on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Add changelog entry. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> (cherry picked from commit c1bd752) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…with remote_snapshot. (#11867) (#12021) * Block index creation when setting property index.store.type to remote_snaphot * Adding null check. * fix failing test * remove unnecessary test. * Address comments on PR. * Resolve conflicts on PR. * Add changelog entry. --------- (cherry picked from commit c1bd752) 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>
…with remote_snapshot. (opensearch-project#11867) * Block index creation when setting property index.store.type to remote_snaphot Signed-off-by: Rishikesh1159 <[email protected]> * Adding null check. Signed-off-by: Rishikesh1159 <[email protected]> * fix failing test Signed-off-by: Rishikesh1159 <[email protected]> * remove unnecessary test. Signed-off-by: Rishikesh1159 <[email protected]> * Address comments on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Resolve conflicts on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Add changelog entry. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]>
…with remote_snapshot. (opensearch-project#11867) * Block index creation when setting property index.store.type to remote_snaphot Signed-off-by: Rishikesh1159 <[email protected]> * Adding null check. Signed-off-by: Rishikesh1159 <[email protected]> * fix failing test Signed-off-by: Rishikesh1159 <[email protected]> * remove unnecessary test. Signed-off-by: Rishikesh1159 <[email protected]> * Address comments on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Resolve conflicts on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Add changelog entry. Signed-off-by: Rishikesh1159 <[email protected]> --------- Signed-off-by: Rishikesh1159 <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]>
…with remote_snapshot. (opensearch-project#11867) * Block index creation when setting property index.store.type to remote_snaphot Signed-off-by: Rishikesh1159 <[email protected]> * Adding null check. Signed-off-by: Rishikesh1159 <[email protected]> * fix failing test Signed-off-by: Rishikesh1159 <[email protected]> * remove unnecessary test. Signed-off-by: Rishikesh1159 <[email protected]> * Address comments on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Resolve conflicts on PR. Signed-off-by: Rishikesh1159 <[email protected]> * Add changelog entry. 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 Index creation path when user attempts to set
index.store.type
toremote_snapshot
while index creation. More info can be found[here ](https://github.com/opensearch-project/OpenSearch/pull/11840#discussion_r1449330279)
Related Issues
Resolves #11658, #11840
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.