Skip to content

Commit

Permalink
update the indexRandom function to create more segments and update
Browse files Browse the repository at this point in the history
IndicesRequestCacheIT, HighlighterSearcherIT to run with minimum of 2
slices

Signed-off-by: Neetika Singhal <[email protected]>
  • Loading branch information
neetikasinghal committed Oct 25, 2023
1 parent 6779633 commit 5ca93a4
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public void testCanCache() throws Exception {
assertCacheState(client, "index", 0, 4);
}

public void testCacheWithFilteredAlias() {
public void testCacheWithFilteredAlias() throws InterruptedException {
Client client = client();
Settings settings = Settings.builder()
.put(IndicesRequestCache.INDEX_CACHE_REQUEST_ENABLED_SETTING.getKey(), true)
Expand All @@ -562,6 +562,8 @@ public void testCacheWithFilteredAlias() {
OpenSearchAssertions.assertAllSuccessful(forceMergeResponse);
refresh();

indexRandomForConcurrentSearch("index");

assertCacheState(client, "index", 0, 0);

SearchResponse r1 = client.prepareSearch("index")
Expand Down
Loading

0 comments on commit 5ca93a4

Please sign in to comment.