diff --git a/x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/LookupJoinTypesIT.java b/x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/LookupJoinTypesIT.java index fdf82bc73349d..264c90da63144 100644 --- a/x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/LookupJoinTypesIT.java +++ b/x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/LookupJoinTypesIT.java @@ -7,11 +7,14 @@ package org.elasticsearch.xpack.esql.action; +import org.apache.lucene.tests.util.LuceneTestCase; +import org.elasticsearch.action.index.IndexRequestBuilder; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.index.mapper.extras.MapperExtrasPlugin; import org.elasticsearch.plugins.Plugin; import org.elasticsearch.test.ESIntegTestCase; import org.elasticsearch.test.ESIntegTestCase.ClusterScope; +import org.elasticsearch.xcontent.XContentType; import org.elasticsearch.xpack.core.esql.action.ColumnInfo; import org.elasticsearch.xpack.esql.VerificationException; import org.elasticsearch.xpack.esql.core.type.DataType; @@ -118,6 +121,7 @@ * And assert that the result exists and is equal to "value". */ @ClusterScope(scope = SUITE, numClientNodes = 1, numDataNodes = 1) +@LuceneTestCase.SuppressFileSystems(value = "HandleLimitFS") public class LookupJoinTypesIT extends ESIntegTestCase { protected Collection> nodePlugins() { return List.of( @@ -361,6 +365,7 @@ private void initIndexes(String group) { private void initData(String group) { Collection configs = testConfigurations.get(group).configs.values(); int docId = 0; + List indexRequests = new ArrayList<>(configs.size()); for (TestConfig config : configs) { String doc = String.format(Locale.ROOT, """ { @@ -368,9 +373,10 @@ private void initData(String group) { "other": "value" } """, lookupPropertyFor(config)); - index(config.indexName(), "" + (++docId), doc); - refresh(config.indexName()); + var indexRequest = client().prepareIndex().setIndex(config.indexName()).setId("" + (++docId)).setSource(doc, XContentType.JSON); + indexRequests.add(indexRequest); } + indexRandom(true, indexRequests); List mainProperties = configs.stream().map(this::mainPropertyFor).distinct().collect(Collectors.toList()); index("index", "1", String.format(Locale.ROOT, """ {