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 <neetiks@amazon.com>
  • Loading branch information
neetikasinghal committed Oct 25, 2023
1 parent 6779633 commit 753008b
Show file tree
Hide file tree
Showing 4 changed files with 167 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 753008b

Please sign in to comment.