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

Add drainRefreshes as part of tearDown in RemoteStoreRefreshListenerTests #12157

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Feb 3, 2024

Description

  • Acquire refresh permits before closing the IndexShard in RemoteStoreRefreshListenerTests.

Related Issues

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.

Copy link
Contributor

github-actions bot commented Feb 3, 2024

Compatibility status:

Checks if related components are compatible with change 70d1ea8

Incompatible components

Incompatible components: [https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git]

Skipped components

Compatible components

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

Copy link
Contributor

github-actions bot commented Feb 3, 2024

❌ Gradle check result for 445a627: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@sachinpkale sachinpkale force-pushed the flaky-fix-RemoteStoreRefreshListener branch from 445a627 to 70d1ea8 Compare February 3, 2024 14:53
Copy link
Contributor

github-actions bot commented Feb 3, 2024

❕ Gradle check result for 70d1ea8: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.repositories.azure.AzureBlobContainerRetriesTests.testWriteLargeBlob

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 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a8dd6a0) 71.26% compared to head (70d1ea8) 71.27%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #12157   +/-   ##
=========================================
  Coverage     71.26%   71.27%           
+ Complexity    59413    59392   -21     
=========================================
  Files          4927     4927           
  Lines        279662   279662           
  Branches      40656    40656           
=========================================
+ Hits         199311   199328   +17     
+ Misses        63725    63723    -2     
+ Partials      16626    16611   -15     

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

@sachinpkale
Copy link
Member Author

sachinpkale commented Feb 4, 2024

Ran ./gradlew ':server:test' --tests "org.opensearch.index.shard.RemoteStoreRefreshListenerTests" 3000+ times on local without failure.

@sachinpkale sachinpkale merged commit 6b2c2f2 into opensearch-project:main Feb 5, 2024
33 of 34 checks passed
@sachinpkale sachinpkale added the backport 2.x Backport to 2.x branch label Feb 5, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 5, 2024
…ests (#12157)

Signed-off-by: Sachin Kale <[email protected]>
Co-authored-by: Sachin Kale <[email protected]>
(cherry picked from commit 6b2c2f2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sachinpkale added a commit to sachinpkale/OpenSearch that referenced this pull request Feb 7, 2024
gbbafna pushed a commit that referenced this pull request Feb 7, 2024
peteralfonsi pushed a commit to peteralfonsi/OpenSearch that referenced this pull request Mar 1, 2024
rayshrey pushed a commit to rayshrey/OpenSearch that referenced this pull request Mar 18, 2024
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…ests (opensearch-project#12157)

Signed-off-by: Sachin Kale <[email protected]>
Co-authored-by: Sachin Kale <[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 skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants