Skip to content

Commit 087da3d

Browse files
committed
[Test] Fix DuelScrollIT#testDuelIndexOrderQueryThenFetch
This commit disables the automatic `refresh_interval` in order to ensure that index readers cannot differ between the normal and scroll search. This issue is related to the 7.5 Lucene upgrade which contains a change that makes single segment merge more likely to occur (max deletes percentage). Closes #32682
1 parent 6333e00 commit 087da3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/test/java/org/elasticsearch/search/scroll/DuelScrollIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ private int createIndex(boolean singleShard) throws Exception {
199199
}
200200
// no replicas, as they might be ordered differently
201201
settings.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 0);
202+
// we need to control refreshes as they might take different merges into account
203+
settings.put("index.refresh_interval", -1);
202204

203205
assertAcked(prepareCreate("test").setSettings(settings.build()).get());
204206
final int numDocs = randomIntBetween(10, 200);
@@ -257,7 +259,6 @@ private void testDuelIndexOrder(SearchType searchType, boolean trackScores, int
257259
}
258260
}
259261

260-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/32682")
261262
public void testDuelIndexOrderQueryThenFetch() throws Exception {
262263
final SearchType searchType = RandomPicks.randomFrom(random(), Arrays.asList(SearchType.QUERY_THEN_FETCH,
263264
SearchType.DFS_QUERY_THEN_FETCH));

0 commit comments

Comments
 (0)