Skip to content

Disabling _close API invocation during remote migration. #18327

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

Merged
merged 4 commits into from
May 26, 2025

Conversation

rakshit98
Copy link
Contributor

@rakshit98 rakshit98 commented May 18, 2025

Description

We want to disallow API which are involved in closing index, when Document-Replication type to Segment-Replication type migration is happening.

  • Disallow if cluster settings has REMOTE_STORE_COMPATIBILITY_MODE_SETTING as MIXED and MIGRATION_DIRECTION_SETTING as REMOTE_STORE.

Related Issues

Resolves #18328

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.

@rakshit98 rakshit98 requested a review from a team as a code owner May 18, 2025 02:57
@rakshit98 rakshit98 force-pushed the validation/closeIndex branch from 7900ed3 to 7d5469b Compare May 18, 2025 03:07
@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Storage:Remote labels May 18, 2025
Copy link
Contributor

✅ Gradle check result for 7d5469b: SUCCESS

Copy link

codecov bot commented May 18, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.55%. Comparing base (8439478) to head (da42ccb).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...admin/indices/close/TransportCloseIndexAction.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18327      +/-   ##
============================================
+ Coverage     72.44%   72.55%   +0.10%     
- Complexity    67359    67376      +17     
============================================
  Files          5492     5492              
  Lines        311122   311129       +7     
  Branches      45220    45221       +1     
============================================
+ Hits         225395   225727     +332     
+ Misses        67372    66974     -398     
- Partials      18355    18428      +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Rakshit Goyal <[email protected]>
@rakshit98 rakshit98 force-pushed the validation/closeIndex branch from 7d5469b to 484e545 Compare May 20, 2025 13:12
Copy link
Contributor

✅ Gradle check result for 484e545: SUCCESS

@github-project-automation github-project-automation bot moved this to 👀 In review in Storage Project Board May 20, 2025
Copy link
Contributor

❌ Gradle check result for da42ccb: 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 da42ccb: 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 da42ccb: SUCCESS

@gbbafna gbbafna merged commit a9c9586 into opensearch-project:main May 26, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Storage Project Board May 26, 2025
tandonks pushed a commit to tandonks/OpenSearch that referenced this pull request Jun 1, 2025
Gagan6164 pushed a commit to Gagan6164/OpenSearch that referenced this pull request Jun 8, 2025
Gagan6164 pushed a commit to Gagan6164/OpenSearch that referenced this pull request Jun 8, 2025
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:Remote
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Remote Store] Reject close index requests, while DocRep to SegRep migration is in progress.
3 participants