Skip to content

Commit

Permalink
Fix tests for concurrent Search: TermsDocCountErrorIT (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#11093)

Signed-off-by: Wei Wang <weiwangv@amazon.com>
Co-authored-by: Wei Wang <weiwangv@amazon.com>
  • Loading branch information
weiwang118 and Wei Wang authored Nov 15, 2023
1 parent 8657669 commit 675dd41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public void setupSuiteScopeCluster() throws Exception {
}

indexRandom(true, builders);
indexRandomForMultipleSlices("idx");
ensureSearchable();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void afterTests() {
client().admin().cluster().prepareUpdateSettings().setPersistentSettings(settingsToUnset).get();
}

// This method shouldn't be called in setupSuiteScopeCluster(). Only call this method inside single test.
public void indexRandomForConcurrentSearch(String... indices) throws InterruptedException {
if (dynamicSettings.get(CLUSTER_CONCURRENT_SEGMENT_SEARCH_SETTING.getKey()).equals("true")) {
indexRandomForMultipleSlices(indices);
Expand Down

0 comments on commit 675dd41

Please sign in to comment.