Skip to content

Commit

Permalink
Fix tests for concurrent Search: TermsDocCountErrorIT
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Wang <[email protected]>
  • Loading branch information
Wei Wang committed Nov 14, 2023
1 parent c676479 commit eba41d7
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 eba41d7

Please sign in to comment.