Skip to content

Apply cluster state metadata and routing table diff when building clu… #18256

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 2 commits into from
May 14, 2025

Conversation

SwethaGuptha
Copy link
Contributor

@SwethaGuptha SwethaGuptha commented May 12, 2025

…ster state from remote

Description

As part of this change the diff remote state download will handle the deleted indices metadata and routing table before building the updated cluster state from the entities read from the remote. Without this, request to create alias with name same as the index being deleted in the same request fails due to error java.lang.IllegalStateException: index, alias, and data stream names need to be unique, but the following duplicates were found [index-2 (alias of [index-1/cf4980a322bac991a0ee6]) conflicts with index] in diff download flow.

Related Issues

Resolves #18045

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 5a3a33c: 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 bug Something isn't working Cluster Manager labels May 12, 2025
@SwethaGuptha SwethaGuptha marked this pull request as ready for review May 12, 2025 08:06
@SwethaGuptha SwethaGuptha requested a review from a team as a code owner May 12, 2025 08:06
Copy link
Contributor

❌ Gradle check result for dbf86de: 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?

…ster state from remote

Signed-off-by: Swetha Guptha <[email protected]>
Copy link
Member

@shiv0408 shiv0408 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Contributor

✅ Gradle check result for 4b4b81d: SUCCESS

Copy link

codecov bot commented May 12, 2025

Codecov Report

Attention: Patch coverage is 56.00000% with 11 lines in your changes missing coverage. Please review.

Project coverage is 72.51%. Comparing base (998ae73) to head (c71a586).

Files with missing lines Patch % Lines
...arch/gateway/remote/RemoteClusterStateService.java 56.00% 7 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18256      +/-   ##
============================================
+ Coverage     72.48%   72.51%   +0.02%     
- Complexity    67357    67364       +7     
============================================
  Files          5488     5488              
  Lines        311023   311030       +7     
  Branches      45217    45216       -1     
============================================
+ Hits         225444   225534      +90     
+ Misses        67282    67107     -175     
- Partials      18297    18389      +92     

☔ 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.

Copy link
Contributor

❕ Gradle check result for c71a586: 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.

@SwethaGuptha
Copy link
Contributor Author

❕ Gradle check result for c71a586: 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.

Flaky test #14299

@shwetathareja shwetathareja merged commit a7b3d97 into opensearch-project:main May 14, 2025
29 of 30 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Cluster Manager Project Board May 14, 2025
tandonks pushed a commit to tandonks/OpenSearch that referenced this pull request Jun 1, 2025
neuenfeldttj pushed a commit to neuenfeldttj/OpenSearch that referenced this pull request Jun 26, 2025
…ster state from remote (opensearch-project#18256)

Signed-off-by: Swetha Guptha <[email protected]>Signed-off-by: TJ Neuenfeldt <[email protected]>
neuenfeldttj pushed a commit to neuenfeldttj/OpenSearch that referenced this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[BUG] Remote Cluster State Diff Download Failures while performing IndicesAliases Action
3 participants