Commit 804bef4
authored
Fix flaky test SegmentReplicationIT.testScrollWithOngoingSegmentReplication (#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 <handalm@amazon.com>1 parent af78ef9 commit 804bef4
1 file changed
Lines changed: 13 additions & 9 deletions
File tree
- server/src/internalClusterTest/java/org/opensearch/indices/replication
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1055 | 1061 | | |
1056 | 1062 | | |
1057 | 1063 | | |
1058 | 1064 | | |
1059 | 1065 | | |
1060 | | - | |
1061 | 1066 | | |
1062 | 1067 | | |
1063 | 1068 | | |
| |||
1066 | 1071 | | |
1067 | 1072 | | |
1068 | 1073 | | |
1069 | | - | |
1070 | 1074 | | |
1071 | 1075 | | |
1072 | 1076 | | |
| |||
0 commit comments