-
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
Restore remote index shards with ExistingStoreRecoverySource after restore from remote state #10665
Restore remote index shards with ExistingStoreRecoverySource after restore from remote state #10665
Conversation
Compatibility status:Checks if related components are compatible with change 91b3ea2 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/anomaly-detection.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/opensearch-oci-object-storage.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:
|
server/src/main/java/org/opensearch/cluster/routing/UnassignedInfo.java
Outdated
Show resolved
Hide resolved
...rc/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreClusterStateRestoreIT.java
Outdated
Show resolved
Hide resolved
So if i got it correctly, in case of remote state auto restore, we want to initialize shards with ExistingStore recovery. If any of the shards find data in local disk on data node it will comeup and others will fail? so thinking from the perspective of split primaries issue, if the shard comes up in the network partition with cluster manager in it, the isolated primary in other partition would try to do primary term validation with this new shard that just came up and it wont be able to? |
…e restore Signed-off-by: bansvaru <bansvaru@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: bansvaru <bansvaru@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: bansvaru <bansvaru@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
Signed-off-by: bansvaru <bansvaru@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Flaky Test - #9464 org.opensearch.search.query.QueryPhaseTests.testQueryTimeoutChecker {p0=0 p1=org.opensearch.search.query.QueryPhase$DefaultQueryPhaseSearcher@42b43a6} |
6641ef8
into
opensearch-project:main
…store from remote state (#10665) (#10779) * Restore remote index shards with ExistingStoreRecoverySource after restore from remote state (cherry picked from commit 6641ef8) Signed-off-by: bansvaru <bansvaru@amazon.com> 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>
…store from remote state (opensearch-project#10665) * Restore remote index shards with ExistingStoreRecoverySource after restore from remote state Signed-off-by: bansvaru <bansvaru@amazon.com>
…store from remote state (opensearch-project#10665) * Restore remote index shards with ExistingStoreRecoverySource after restore from remote state Signed-off-by: bansvaru <bansvaru@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
After Quorum loss recovery, remote index shards will be restore in cluster metadata as EXISTING_STORE as RecoverySource. This is same as non remote shards.
Related Issues
Resolves #10658
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.