Skip to content

Commit

Permalink
update the indexRandom function to create more segments and update (o…
Browse files Browse the repository at this point in the history
…pensearch-project#10247)

IndicesRequestCacheIT, HighlighterSearcherIT to run with minimum of 2
slices

Signed-off-by: Neetika Singhal <neetiks@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
  • Loading branch information
neetikasinghal authored and shiv0408 committed Apr 25, 2024
1 parent 0fcb2c9 commit 6c3ce9f
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 30 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- [Remote Store] Add repository stats for remote store([#10567](https://github.com/opensearch-project/OpenSearch/pull/10567))
- Add search query categorizer ([#10255](https://github.com/opensearch-project/OpenSearch/pull/10255))
- Introduce ConcurrentQueryProfiler to profile query using concurrent segment search path and support concurrency during rewrite and create weight ([10352](https://github.com/opensearch-project/OpenSearch/pull/10352))
- Update the indexRandom function to create more segments for concurrent search tests ([10247](https://github.com/opensearch-project/OpenSearch/pull/10247))
- [Remote cluster state] Make index and global metadata upload timeout dynamic cluster settings ([#10814](https://github.com/opensearch-project/OpenSearch/pull/10814))
- 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))
- Add cluster state stats ([#10670](https://github.com/opensearch-project/OpenSearch/pull/10670))
Expand Down
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 6c3ce9f

Please sign in to comment.