-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add test for stale writer correctness with pinned timestamp snapshots #17547
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 test for stale writer correctness with pinned timestamp snapshots #17547
Conversation
Signed-off-by: Ashish Singh <[email protected]>
|
❌ 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? |
|
❕ 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 ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
…#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>
…#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>
…opensearch-project#17547) Signed-off-by: Ashish Singh <[email protected]> Signed-off-by: Vinay Krishna Pudyodu <[email protected]>
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
[ ] 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.