Skip to content

Conversation

@ashking94
Copy link
Member

@ashking94 ashking94 commented Mar 7, 2025

Description

This PR adds a unit test for handling the case of choosing the correct metadata file when there are metadata files created by stale writer which has higher timestamp than correct writer (which has higher primary term) but below the pinned timestamp. This test checks that the timestamp picked is always the one with highest primary term.

Accidentally closed #17536 and created this PR.

Check List

  • Functionality includes testing.
  • [ ] API changes companion pull request created, if applicable.
  • [ ] Public documentation issue/PR created, if applicable.

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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2025

❌ Gradle check result for b1dfd68: 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?

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2025

❕ Gradle check result for b1dfd68: UNSTABLE

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

@codecov
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.41%. Comparing base (7388205) to head (b1dfd68).
Report is 5 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17547      +/-   ##
============================================
+ Coverage     71.54%   72.41%   +0.87%     
- Complexity    64883    65698     +815     
============================================
  Files          5311     5311              
  Lines        304903   304941      +38     
  Branches      44215    44228      +13     
============================================
+ Hits         218133   220814    +2681     
+ Misses        68896    66058    -2838     
- Partials      17874    18069     +195     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ashking94 ashking94 merged commit ffa46ca into opensearch-project:main Mar 7, 2025
56 of 57 checks passed
@ashking94 ashking94 added the backport 2.x Backport to 2.x branch label Mar 7, 2025
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 7, 2025
…#17547)

Signed-off-by: Ashish Singh <[email protected]>
(cherry picked from commit ffa46ca)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ashking94 pushed a commit that referenced this pull request Mar 7, 2025
…#17547) (#17550)

(cherry picked from commit ffa46ca)

Signed-off-by: Ashish Singh <[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>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Mar 18, 2025
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.

2 participants