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

Backport/backport 2048,2074 to 1.x #2085

Merged

Conversation

jainankitk
Copy link
Collaborator

Signed-off-by: Ankit Jain [email protected]

Description

The issue is caused due to one of the primary shard being initialized and some replica starts meanwhile. Hence, latch is counted down as half shards are already initialized. Making the check more robust by ensuring no primaries are initializing and not more than 20% of replicas have started on new nodes

Issues Resolved

#1957

Check List

  • New functionality includes testing.
    • All tests pass
  • [] New functionality has been documented.
    • [] New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

opensearch-project#2048)

* Stabilizing org.opensearch.cluster.routing.MovePrimaryFirstTests.testClusterGreenAfterPartialRelocation

Signed-off-by: Ankit Jain <[email protected]>

* Removing unused import

Signed-off-by: Ankit Jain <[email protected]>

* Making code more readable

Signed-off-by: Ankit Jain <[email protected]>
(cherry picked from commit 343b82f)
@jainankitk jainankitk requested a review from a team as a code owner February 10, 2022 21:12
@jainankitk jainankitk changed the base branch from main to 1.x February 10, 2022 21:12
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success b111119
Log 2326

Reports 2326

@dblock dblock merged commit ff4af0f into opensearch-project:1.x Feb 11, 2022
@jainankitk jainankitk deleted the backport/backport-2048-to-1.x branch February 11, 2022 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants