Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test SegmentReplicationIT.testScrollWithOngoingSegmentRepli…
…cation (opensearch-project#7572) This test has flaky failures for two reasons: 1. Fetches list of temporary files on disk starting with ".replication" before the replica has time to flush received chunks to disk. Fixed by wrapping the assertion that a tmp file exists with assertBusy. 2. Asserts that the count of tmp files is exactly the same before/after a scroll request is cleared. However, it is possible that additional tmp files have been written to disk concurrently, causing a count mismatch. Fixed by removing the size assertion. For the sake of this test we don't care if this is the case, as long as the tmp files originally fetched remain after a scroll query is cleared. Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
- Loading branch information