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

[Segment Replication] Add random replication strategy #12297

Merged

Conversation

Rishikesh1159
Copy link
Member

@Rishikesh1159 Rishikesh1159 commented Feb 12, 2024

Description

This PR enables the support of random replication strategy for integration tests. This helps to increase the segment replication test coverage by randomly selecting replication strategy for tests not critical of replication strategy.

Related Issues

Resolves #12261

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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.

@Rishikesh1159 Rishikesh1159 marked this pull request as ready for review February 12, 2024 23:45
@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Indexing:Replication Issues and PRs related to core replication framework eg segrep labels Feb 12, 2024
Copy link
Contributor

github-actions bot commented Feb 13, 2024

Compatibility status:

Checks if related components are compatible with change 6951ea2

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/performance-analyzer.git]

Copy link
Contributor

❕ Gradle check result for ba618e2: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (76ae14a) 71.41% compared to head (6951ea2) 71.44%.
Report is 17 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12297      +/-   ##
============================================
+ Coverage     71.41%   71.44%   +0.03%     
- Complexity    59813    59863      +50     
============================================
  Files          4959     4959              
  Lines        281126   281126              
  Branches      40857    40857              
============================================
+ Hits         200753   200847      +94     
+ Misses        63731    63639      -92     
+ Partials      16642    16640       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

❕ Gradle check result for 6951ea2: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.cluster.MinimumClusterManagerNodesIT.testThreeNodesNoClusterManagerBlock

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@andrross andrross added the backport 2.x Backport to 2.x branch label Feb 21, 2024
@andrross andrross merged commit f8225ca into opensearch-project:main Feb 21, 2024
35 of 38 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2024
* Add new method to pick a random replication strategy.

Signed-off-by: Rishikesh1159 <[email protected]>

* replace usage of refresh with refreshandWaitForReplication()

Signed-off-by: Rishikesh1159 <[email protected]>

* Add replication strategy logging.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
(cherry picked from commit f8225ca)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Rishikesh1159 pushed a commit that referenced this pull request Feb 22, 2024
* Add new method to pick a random replication strategy.



* replace usage of refresh with refreshandWaitForReplication()



* Add replication strategy logging.



---------


(cherry picked from commit f8225ca)

Signed-off-by: Rishikesh1159 <[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>
peteralfonsi pushed a commit to peteralfonsi/OpenSearch that referenced this pull request Mar 1, 2024
…ject#12297)

* Add new method to pick a random replication strategy.

Signed-off-by: Rishikesh1159 <[email protected]>

* replace usage of refresh with refreshandWaitForReplication()

Signed-off-by: Rishikesh1159 <[email protected]>

* Add replication strategy logging.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
amkhar pushed a commit to amkhar/OpenSearch that referenced this pull request Mar 12, 2024
…ject#12297)

* Add new method to pick a random replication strategy.

Signed-off-by: Rishikesh1159 <[email protected]>

* replace usage of refresh with refreshandWaitForReplication()

Signed-off-by: Rishikesh1159 <[email protected]>

* Add replication strategy logging.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
Signed-off-by: Aman Khare <[email protected]>
rayshrey pushed a commit to rayshrey/OpenSearch that referenced this pull request Mar 18, 2024
…ject#12297)

* Add new method to pick a random replication strategy.

Signed-off-by: Rishikesh1159 <[email protected]>

* replace usage of refresh with refreshandWaitForReplication()

Signed-off-by: Rishikesh1159 <[email protected]>

* Add replication strategy logging.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…ject#12297)

* Add new method to pick a random replication strategy.

Signed-off-by: Rishikesh1159 <[email protected]>

* replace usage of refresh with refreshandWaitForReplication()

Signed-off-by: Rishikesh1159 <[email protected]>

* Add replication strategy logging.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
Signed-off-by: Shivansh Arora <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch enhancement Enhancement or improvement to existing feature or request Indexing:Replication Issues and PRs related to core replication framework eg segrep skip-changelog
Projects
None yet
4 participants