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

[Remote Store] Fix tests when we restore index without any refresh #9480

Merged

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Aug 22, 2023

Description

Related Issues

Resolves #7923

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
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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-trigger-bot
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change ebdffbb

Incompatible components

Incompatible components: [https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/asynchronous-search.git]

Skipped components

Compatible components

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

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Sachin Kale <[email protected]>
@sachinpkale
Copy link
Member Author

The following tests are showing flaky behavior:

Tests with failures:
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.testFullRestartDuringReplication
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.testDropRandomNodeDuringReplication
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.testBasicReplication
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.classMethod

Checking if the flakiness is introduced with this PR.

@sachinpkale
Copy link
Member Author

The following tests are showing flaky behavior:

Tests with failures:
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.testFullRestartDuringReplication
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.testDropRandomNodeDuringReplication
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.testBasicReplication
 - org.opensearch.indices.replication.SegmentReplicationSuiteIT.classMethod

Checking if the flakiness is introduced with this PR.

These are flaky tests and able to reproduce the failure on main as well. Issue: #9499

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #9480 (ffe2d90) into main (9fb86a5) will decrease coverage by 0.17%.
Report is 5 commits behind head on main.
The diff coverage is 70.00%.

❗ Current head ffe2d90 differs from pull request most recent head dcff1e3. Consider uploading reports for the commit dcff1e3 to get more accurate results

@@             Coverage Diff              @@
##               main    #9480      +/-   ##
============================================
- Coverage     71.16%   71.00%   -0.17%     
+ Complexity    57478    57398      -80     
============================================
  Files          4776     4776              
  Lines        270811   270821      +10     
  Branches      39582    39582              
============================================
- Hits         192723   192288     -435     
- Misses        61902    62407     +505     
+ Partials      16186    16126      -60     
Files Changed Coverage Δ
...java/org/opensearch/index/shard/StoreRecovery.java 57.06% <14.28%> (-0.19%) ⬇️
...rc/main/java/org/opensearch/index/store/Store.java 82.09% <100.00%> (+0.39%) ⬆️
.../org/opensearch/index/translog/TranslogHeader.java 81.48% <100.00%> (+3.27%) ⬆️

... and 468 files with indirect coverage changes

@sachinpkale
Copy link
Member Author

Added unit tests. StoreRecovery changes are covered in integ tests.

Signed-off-by: Sachin Kale <[email protected]>
@opensearch-trigger-bot
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change 5d3633c

Incompatible components

Incompatible components: [https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/security-analytics.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git]

@gbbafna gbbafna merged commit 9272aa2 into opensearch-project:main Aug 23, 2023
@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label Aug 23, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 23, 2023
…9480)

Signed-off-by: Sachin Kale <[email protected]>
(cherry picked from commit 9272aa2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

neetikasinghal pushed a commit to neetikasinghal/OpenSearch that referenced this pull request Aug 23, 2023
gbbafna pushed a commit that referenced this pull request Aug 24, 2023
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Aug 25, 2023
Gaganjuneja pushed a commit to Gaganjuneja/OpenSearch that referenced this pull request Aug 28, 2023
Gaganjuneja pushed a commit to Gaganjuneja/OpenSearch that referenced this pull request Aug 28, 2023
kkmr pushed a commit to kkmr/OpenSearch that referenced this pull request Aug 28, 2023
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
brusic pushed a commit to brusic/OpenSearch that referenced this pull request Sep 25, 2023
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
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 skip-changelog
Projects
None yet
3 participants