Skip to content

Commit 0698261

Browse files
author
Wei Wang
committed
Fix tests for concurrent Search: TermsDocCountErrorIT
Signed-off-by: Wei Wang <[email protected]>
1 parent c676479 commit 0698261

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/src/internalClusterTest/java/org/opensearch/search/aggregations/bucket/TermsDocCountErrorIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public void setupSuiteScopeCluster() throws Exception {
225225
}
226226

227227
indexRandom(true, builders);
228+
indexRandomForMultipleSlices("idx");
228229
ensureSearchable();
229230
}
230231

test/framework/src/main/java/org/opensearch/test/ParameterizedOpenSearchIntegTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public void afterTests() {
4747
client().admin().cluster().prepareUpdateSettings().setPersistentSettings(settingsToUnset).get();
4848
}
4949

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

0 commit comments

Comments
 (0)