-
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
Fix cluster chaining during bootstrap #10020
Fix cluster chaining during bootstrap #10020
Conversation
Signed-off-by: Sooraj Sinha <[email protected]>
b01e080
to
05dc62f
Compare
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change aa2105b Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git] |
Gradle Check (Jenkins) Run Completed with:
|
b501aa0
to
8f108c9
Compare
server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
69be992
to
ebc4ffe
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Sooraj Sinha <[email protected]>
ebc4ffe
to
596d8d5
Compare
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sooraj Sinha <[email protected]>
We are deleting stale manifests and then the stale index metadata. When the stale manifest is deleted but the index metadata is yet to be deleted, the folder for the cluster UUID will still be present in the repository. So although we get the cluster UUID, there will not be any manifest for that UUID |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
* Fix clusterUUID chaining logic Signed-off-by: Sooraj Sinha <[email protected]> (cherry picked from commit 2a5b124) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix clusterUUID chaining logic Signed-off-by: Sooraj Sinha <[email protected]> (cherry picked from commit 2a5b124) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix clusterUUID chaining logic (cherry picked from commit 2a5b124) Signed-off-by: Sooraj Sinha <[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>
Hey @shwetathareja, @soosinha -- This looks more like a feature enhancement than a fix. We're in an release cycle, so we're not backporting any features while we prepare for release. I think it's best to pull out this change, because it puts our ability to get 2.11 out (we only have 4 more days to get a viable release candidate out). Can you please revert it? Thanks, |
* Fix clusterUUID chaining logic (cherry picked from commit 2a5b124) Signed-off-by: Sooraj Sinha <[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>
@CEHENKLE for FYI, it was a fix for the corner case which was not handled in case there are multiple cluster UUIDs in remote which system can handle instead of throwing error to user. |
* Fix clusterUUID chaining logic Signed-off-by: Sooraj Sinha <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
* Fix clusterUUID chaining logic Signed-off-by: Sooraj Sinha <[email protected]>
* Fix clusterUUID chaining logic Signed-off-by: Sooraj Sinha <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
This fixes the logic for generating the cluster chain when a new cluster manager node is bootstrapping
Related Issues
#10019
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.