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

[Searchable Snapshot] Add Relevant Error handling for Index Creation with remote_snapshot. #11867

Conversation

Rishikesh1159
Copy link
Member

@Rishikesh1159 Rishikesh1159 commented Jan 12, 2024

Description

This PR adds appropriate error handling in Index creation path when user attempts to set index.store.type to remote_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

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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 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?

Copy link
Contributor

github-actions bot commented Jan 12, 2024

Compatibility status:

Checks if related components are compatible with change 417fe3c

Incompatible components

Incompatible components: [https://github.com/opensearch-project/custom-codecs.git]

Skipped components

Compatible components

Compatible 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]>
Copy link
Contributor

✅ Gradle check result for f08daa1: SUCCESS

Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (76f7e73) 71.36% compared to head (c7a9c38) 71.33%.
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Signed-off-by: Rishikesh1159 <[email protected]>
Copy link
Contributor

❌ 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?

Copy link
Contributor

❕ Gradle check result for be471e9: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.repositories.azure.AzureBlobContainerRetriesTests.testWriteLargeBlob
      1 org.opensearch.repositories.azure.AzureBlobContainerRetriesTests.testReadBlobWithRetries
      1 org.opensearch.index.shard.RemoteStoreRefreshListenerTests.testRefreshSuccessOnThirdAttempt

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Signed-off-by: Rishikesh1159 <[email protected]>
Signed-off-by: Rishikesh1159 <[email protected]>
Copy link
Contributor

✅ Gradle check result for f2391ab: SUCCESS

Copy link
Contributor

✅ Gradle check result for e7863b9: SUCCESS

Copy link
Member

@andrross andrross left a 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"

Copy link
Contributor

❌ 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?

@Rishikesh1159
Copy link
Member Author

❌ 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?

#11454

Copy link
Contributor

❕ Gradle check result for 417fe3c: UNSTABLE

  • TEST FAILURES:
      2 org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link
Contributor

❌ 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?

@Rishikesh1159
Copy link
Member Author

❌ 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?

#9191, #10006

Copy link
Contributor

❕ Gradle check result for c7a9c38: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@Rishikesh1159 Rishikesh1159 added the backport 2.x Backport to 2.x branch label Jan 25, 2024
@Rishikesh1159 Rishikesh1159 merged commit c1bd752 into opensearch-project:main Jan 25, 2024
51 of 57 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 25, 2024
…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>
kotwanikunal pushed a commit that referenced this pull request Jan 25, 2024
…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>
peteralfonsi pushed a commit to peteralfonsi/OpenSearch that referenced this pull request Mar 1, 2024
…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]>
rayshrey pushed a commit to rayshrey/OpenSearch that referenced this pull request Mar 18, 2024
…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]>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…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]>
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 enhancement Enhancement or improvement to existing feature or request Search:Searchable Snapshots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Restore API Error Handling
3 participants