OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

[Segment Replication] Add random replication strategy

Open Rishikesh1159 opened this issue 1 year ago • 4 comments

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

  • [x] New functionality includes testing.
    • [x] All tests pass
  • [x] New functionality has been documented.
    • [x] New functionality has javadoc added
  • [x] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • [x] Commits are signed per the DCO using --signoff
  • [x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • [x] 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 avatar Feb 12 '24 23:02 Rishikesh1159

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]

github-actions[bot] avatar Feb 13 '24 00:02 github-actions[bot]

:grey_exclamation: Gradle check result for ba618e29c26576fd9e8b54ade2220823c7a026bf: 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.

github-actions[bot] avatar Feb 13 '24 00:02 github-actions[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 13 '24 00:02 codecov[bot]

:grey_exclamation: Gradle check result for 6951ea220d85ec58ce0802c3d2dab912f1cfcb96: 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.

github-actions[bot] avatar Feb 14 '24 23:02 github-actions[bot]