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

Adding shards per node constraint for predictability to testClusterGr… #2110

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

jainankitk
Copy link
Collaborator

…eenAfterPartialRelocation

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

Description

The test was failing due to some replica shards initializing and completing before last primary shard could finish initializing. Added shards per node constraint to prevent this from happening. The test has become really lightweight, completes in less than 5 seconds mostly and ran locally without any failure more than 500 times

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.

@jainankitk jainankitk requested a review from a team as a code owner February 15, 2022 20:59
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

Signed-off-by: Ankit Jain <[email protected]>
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure ac8fa7f
Log 2417

Reports 2417

@jainankitk
Copy link
Collaborator Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 93eb18e
Log 2420

Reports 2420

@jainankitk
Copy link
Collaborator Author

❌ Gradle Check failure 93eb18e Log 2420

Reports 2420

Tests with failures:

  • org.opensearch.gateway.RecoveryFromGatewayIT.testReuseInFileBasedPeerRecovery

@jainankitk
Copy link
Collaborator Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 93eb18e
Log 2421

Reports 2421

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Beautiful. I would add a comment in the test that describes what the test actually tries to test (your whiteboard example was really clear, so I would dump that info here).

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 93eb18e
Log 2422

Reports 2422

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 73ccfcc
Log 2423

Reports 2423

@jainankitk
Copy link
Collaborator Author

❌ Gradle Check failure 73ccfcc Log 2423

Tests with failures:
org.opensearch.gateway.RecoveryFromGatewayIT.testReuseInFileBasedPeerRecovery
and some centos issue as well

@andrross
Copy link
Member

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 73ccfcc
Log 2428

Reports 2428

@jainankitk
Copy link
Collaborator Author

Unrelated error, restart gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 73ccfcc
Log 2461

Reports 2461

@dblock
Copy link
Member

dblock commented Feb 16, 2022

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 73ccfcc
Log 2466

Reports 2466

@jainankitk
Copy link
Collaborator Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 73ccfcc
Log 2470

Reports 2470

@jainankitk
Copy link
Collaborator Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 73ccfcc
Log 2480

Reports 2480

@jainankitk
Copy link
Collaborator Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 73ccfcc
Log 2521

Reports 2521

@jainankitk
Copy link
Collaborator Author

✅ Gradle Check success 73ccfcc Log 2521

Reports 2521

Yayy!

@andrross andrross merged commit 8ae0db5 into opensearch-project:main Feb 18, 2022
@jainankitk jainankitk deleted the fix-1957 branch February 18, 2022 17:29
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 26, 2022
#2110)

* Adding shards per node constraint for predictability to testClusterGreenAfterPartialRelocation

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

* Fixing precommit violation

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

* Adding assertion to ensure invariant

Signed-off-by: Ankit Jain <[email protected]>
(cherry picked from commit 8ae0db5)
andrross pushed a commit that referenced this pull request Feb 28, 2022
#2110) (#2265)

* Adding shards per node constraint for predictability to testClusterGreenAfterPartialRelocation

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

* Fixing precommit violation

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

* Adding assertion to ensure invariant

Signed-off-by: Ankit Jain <[email protected]>
(cherry picked from commit 8ae0db5)

Co-authored-by: Ankit Jain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants