Skip to content

Commit 7372529

Browse files
authored
[Tests] Reduce randomization in CloseWhileRelocatingShardsIT (#36694)
1 parent ef6ae69 commit 7372529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/indices/state/CloseWhileRelocatingShardsIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected int numberOfReplicas() {
6565
}
6666

6767
public void testCloseWhileRelocatingShards() throws Exception {
68-
final String[] indices = new String[randomIntBetween(3, 10)];
68+
final String[] indices = new String[randomIntBetween(1, 3)];
6969
final Map<String, Long> docsPerIndex = new HashMap<>();
7070

7171
for (int i = 0; i < indices.length; i++) {
@@ -93,7 +93,7 @@ public void testCloseWhileRelocatingShards() throws Exception {
9393
final Map<String, BackgroundIndexer> indexers = new HashMap<>();
9494
for (final String index : indices) {
9595
if (randomBoolean()) {
96-
final BackgroundIndexer indexer = new BackgroundIndexer(index, "_doc", client());
96+
final BackgroundIndexer indexer = new BackgroundIndexer(index, "_doc", client(), -1, scaledRandomIntBetween(1, 3));
9797
waitForDocs(1, indexer);
9898
indexers.put(index, indexer);
9999
}

0 commit comments

Comments
 (0)