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

Fix flaky tests in restore flow using snapshot interop #8422

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Jul 4, 2023

Description

  • Integ tests in RestoreSnapshotIT that used remote store integration were flaky due to client used from the stopped node.
  • In this fix, we are re-initializing the client after stopping the node.

Related Issues

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.

Signed-off-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: Sachin Kale <kalsac@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testNodeDropWithOngoingReplication
      1 org.opensearch.remotestore.RemoteStoreRefreshListenerIT.testRemoteRefreshRetryOnFailure

@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #8422 (81ca831) into main (a3b515a) will increase coverage by 0.30%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #8422      +/-   ##
============================================
+ Coverage     70.53%   70.84%   +0.30%     
- Complexity    56529    56900     +371     
============================================
  Files          4758     4758              
  Lines        269186   269186              
  Branches      39408    39408              
============================================
+ Hits         189873   190701     +828     
+ Misses        63128    62410     -718     
+ Partials      16185    16075     -110     

see 496 files with indirect coverage changes

Copy link
Member

@ashking94 ashking94 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testNodeDropWithOngoingReplication
      1 org.opensearch.remotestore.RemoteStoreRefreshListenerIT.testRemoteRefreshRetryOnFailure
      1 org.opensearch.indices.replication.SegmentReplicationRelocationIT.testPrimaryRelocation
      1 org.opensearch.gateway.ReplicaShardAllocatorIT.testPreferCopyWithHighestMatchingOperations

@gbbafna gbbafna merged commit 64c0871 into opensearch-project:main Jul 4, 2023
@sachinpkale sachinpkale added the backport 2.x Backport to 2.x branch label Jul 4, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 4, 2023
Signed-off-by: Sachin Kale <kalsac@amazon.com>
(cherry picked from commit 64c0871)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
gbbafna pushed a commit that referenced this pull request Jul 4, 2023
(cherry picked from commit 64c0871)

Signed-off-by: Sachin Kale <kalsac@amazon.com>
buddharajusahil pushed a commit to buddharajusahil/OpenSearch that referenced this pull request Jul 18, 2023
…oject#8422)

Signed-off-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: sahil buddharaju <sahilbud@amazon.com>
baba-devv pushed a commit to baba-devv/OpenSearch that referenced this pull request Jul 29, 2023
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…oject#8422)

Signed-off-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
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
Development

Successfully merging this pull request may close these issues.

3 participants