Add test for stale writer correctness with pinned timestamp snapshots#17536
Add test for stale writer correctness with pinned timestamp snapshots#17536ashking94 wants to merge 0 commit intoopensearch-project:mainfrom
Conversation
|
❌ Gradle check result for 10a24b1: null 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 10a24b1: 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? |
Unrelated failures: |
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.
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.