Skip to content

Commit 7922295

Browse files
update the indexRandom function to create more segments and update (#10247) (#11009)
IndicesRequestCacheIT, HighlighterSearcherIT to run with minimum of 2 slices Signed-off-by: Neetika Singhal <neetiks@amazon.com> (cherry picked from commit bc74731)
1 parent 8721082 commit 7922295

File tree

5 files changed

+168
-30
lines changed

5 files changed

+168
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1818
- Added cluster setting cluster.restrict.index.replication_type to restrict setting of index setting replication type ([#10866](https://github.com/opensearch-project/OpenSearch/pull/10866))
1919
- Add cluster state stats ([#10670](https://github.com/opensearch-project/OpenSearch/pull/10670))
2020
- [Remote cluster state] Restore cluster state version during remote state auto restore ([#10853](https://github.com/opensearch-project/OpenSearch/pull/10853))
21+
- Update the indexRandom function to create more segments for concurrent search tests ([10247](https://github.com/opensearch-project/OpenSearch/pull/10247))
2122

2223
### Dependencies
2324
- Bumps jetty version to 9.4.52.v20230823 to fix GMS-2023-1857 ([#9822](https://github.com/opensearch-project/OpenSearch/pull/9822))

server/src/internalClusterTest/java/org/opensearch/indices/IndicesRequestCacheIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ public void testCanCache() throws Exception {
539539
assertCacheState(client, "index", 0, 4);
540540
}
541541

542-
public void testCacheWithFilteredAlias() {
542+
public void testCacheWithFilteredAlias() throws InterruptedException {
543543
Client client = client();
544544
Settings settings = Settings.builder()
545545
.put(IndicesRequestCache.INDEX_CACHE_REQUEST_ENABLED_SETTING.getKey(), true)
@@ -562,6 +562,8 @@ public void testCacheWithFilteredAlias() {
562562
OpenSearchAssertions.assertAllSuccessful(forceMergeResponse);
563563
refresh();
564564

565+
indexRandomForConcurrentSearch("index");
566+
565567
assertCacheState(client, "index", 0, 0);
566568

567569
SearchResponse r1 = client.prepareSearch("index")

0 commit comments

Comments
 (0)