Skip to content

Commit 5056909

Browse files
Merge branch 'main' of github.com:elastic/elasticsearch into sa-prevent-using-selectors-for-ccs-ccr
2 parents 7d1dd3e + 36c14bf commit 5056909

File tree

55 files changed

+920
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+920
-200
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ private static ListMultimap<Class<?>, String> createLegacyRestTestBasePluginUsag
3636
map.put(LegacyRestTestBasePlugin.class, ":qa:remote-clusters");
3737
map.put(LegacyRestTestBasePlugin.class, ":qa:repository-multi-version");
3838
map.put(LegacyRestTestBasePlugin.class, ":qa:rolling-upgrade-legacy");
39-
map.put(LegacyRestTestBasePlugin.class, ":test:external-modules:test-apm-integration");
40-
map.put(LegacyRestTestBasePlugin.class, ":test:external-modules:test-delayed-aggs");
41-
map.put(LegacyRestTestBasePlugin.class, ":test:external-modules:test-die-with-dignity");
42-
map.put(LegacyRestTestBasePlugin.class, ":test:external-modules:test-error-query");
43-
map.put(LegacyRestTestBasePlugin.class, ":test:external-modules:test-latency-simulating-directory");
44-
map.put(LegacyRestTestBasePlugin.class, ":test:yaml-rest-runner");
4539
map.put(LegacyRestTestBasePlugin.class, ":x-pack:plugin:core");
4640
map.put(LegacyRestTestBasePlugin.class, ":x-pack:plugin:ent-search");
4741
map.put(LegacyRestTestBasePlugin.class, ":x-pack:plugin:fleet");
@@ -60,8 +54,6 @@ private static ListMultimap<Class<?>, String> createLegacyRestTestBasePluginUsag
6054
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-plugins-ssl");
6155
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-security-with-mustache");
6256
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:xpack-prefix-rest-compat");
63-
map.put(LegacyRestTestBasePlugin.class, ":modules:ingest-geoip:qa:file-based-update");
64-
map.put(LegacyRestTestBasePlugin.class, ":plugins:discovery-gce:qa:gce");
6557
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-basic-license");
6658
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-full-license");
6759
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:multi-cluster-search-security:legacy-with-restricted-trust");

docs/changelog/125709.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125709
2+
summary: Store arrays offsets for unsigned long fields natively with synthetic source
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/125716.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125716
2+
summary: Return appropriate error on null dims update instead of npe
3+
area: Vector Search
4+
type: bug
5+
issues: []

modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3EcsCredentialsRestIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class RepositoryS3EcsCredentialsRestIT extends AbstractRepositoryS3RestTe
3535
private static final String BASE_PATH = PREFIX + "base_path";
3636
private static final String CLIENT = "ecs_credentials_client";
3737

38-
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials();
38+
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials("*", "s3");
3939

4040
private static final Ec2ImdsHttpFixture ec2ImdsHttpFixture = new Ec2ImdsHttpFixture(
4141
new Ec2ImdsServiceBuilder(Ec2ImdsVersion.V1).newCredentialsConsumer(dynamicCredentials::addValidCredentials)

modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3ImdsV1CredentialsRestIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class RepositoryS3ImdsV1CredentialsRestIT extends AbstractRepositoryS3Res
3333
private static final String BASE_PATH = PREFIX + "base_path";
3434
private static final String CLIENT = "imdsv1_credentials_client";
3535

36-
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials();
36+
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials("*", "s3");
3737

3838
private static final Ec2ImdsHttpFixture ec2ImdsHttpFixture = new Ec2ImdsHttpFixture(
3939
new Ec2ImdsServiceBuilder(Ec2ImdsVersion.V1).newCredentialsConsumer(dynamicCredentials::addValidCredentials)

modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3ImdsV2CredentialsRestIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class RepositoryS3ImdsV2CredentialsRestIT extends AbstractRepositoryS3Res
3333
private static final String BASE_PATH = PREFIX + "base_path";
3434
private static final String CLIENT = "imdsv2_credentials_client";
3535

36-
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials();
36+
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials("*", "s3");
3737

3838
private static final Ec2ImdsHttpFixture ec2ImdsHttpFixture = new Ec2ImdsHttpFixture(
3939
new Ec2ImdsServiceBuilder(Ec2ImdsVersion.V2).newCredentialsConsumer(dynamicCredentials::addValidCredentials)

modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3StsCredentialsRestIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class RepositoryS3StsCredentialsRestIT extends AbstractRepositoryS3RestTe
3232
private static final String BASE_PATH = PREFIX + "base_path";
3333
private static final String CLIENT = "sts_credentials_client";
3434

35-
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials();
35+
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials("*", "s3");
3636

3737
private static final S3HttpFixture s3HttpFixture = new S3HttpFixture(true, BUCKET, BASE_PATH, dynamicCredentials::isAuthorized);
3838

muted-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,15 @@ tests:
390390
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
391391
method: test {p0=cat.allocation/10_basic/Node forecasts}
392392
issue: https://github.com/elastic/elasticsearch/issues/125711
393+
- class: org.elasticsearch.xpack.migrate.action.ReindexDataStreamTransportActionIT
394+
method: testAlreadyUpToDateDataStream
395+
issue: https://github.com/elastic/elasticsearch/issues/125727
396+
- class: org.elasticsearch.index.engine.ThreadPoolMergeSchedulerStressTestIT
397+
method: testMergingFallsBehindAndThenCatchesUp
398+
issue: https://github.com/elastic/elasticsearch/issues/125744
399+
- class: org.elasticsearch.test.rest.ClientYamlTestSuiteIT
400+
method: test {yaml=cat.allocation/10_basic/Node forecasts}
401+
issue: https://github.com/elastic/elasticsearch/issues/125661
393402

394403
# Examples:
395404
#

plugins/discovery-ec2/src/javaRestTest/java/org/elasticsearch/discovery/ec2/DiscoveryEc2EcsCredentialsIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
public class DiscoveryEc2EcsCredentialsIT extends DiscoveryEc2ClusterFormationTestCase {
2828

29-
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials();
30-
3129
private static final String PREFIX = getIdentifierPrefix("DiscoveryEc2EcsCredentialsIT");
3230
private static final String REGION = PREFIX + "-region";
3331
private static final String CREDENTIALS_ENDPOINT = "/ecs_credentials_endpoint_" + PREFIX;
3432

33+
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials(REGION, "ec2");
34+
3535
private static final Ec2ImdsHttpFixture ec2ImdsHttpFixture = new Ec2ImdsHttpFixture(
3636
new Ec2ImdsServiceBuilder(Ec2ImdsVersion.V1).newCredentialsConsumer(dynamicCredentials::addValidCredentials)
3737
.alternativeCredentialsEndpoints(Set.of(CREDENTIALS_ENDPOINT))

plugins/discovery-ec2/src/javaRestTest/java/org/elasticsearch/discovery/ec2/DiscoveryEc2InstanceProfileIT.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,27 @@
1515
import fixture.aws.imds.Ec2ImdsServiceBuilder;
1616
import fixture.aws.imds.Ec2ImdsVersion;
1717

18+
import org.elasticsearch.common.util.LazyInitializable;
1819
import org.elasticsearch.discovery.DiscoveryModule;
20+
import org.elasticsearch.test.ESTestCase;
1921
import org.elasticsearch.test.cluster.ElasticsearchCluster;
2022
import org.junit.ClassRule;
2123
import org.junit.rules.RuleChain;
2224
import org.junit.rules.TestRule;
2325

2426
import java.util.List;
27+
import java.util.function.Supplier;
2528

2629
public class DiscoveryEc2InstanceProfileIT extends DiscoveryEc2ClusterFormationTestCase {
2730

28-
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials();
31+
// Lazy-initialized so we can generate it randomly, which is not possible in static context.
32+
private static final Supplier<String> regionSupplier = new LazyInitializable<>(ESTestCase::randomIdentifier)::getOrCompute;
33+
34+
private static final DynamicAwsCredentials dynamicCredentials = new DynamicAwsCredentials(regionSupplier, "ec2");
2935

3036
private static final Ec2ImdsHttpFixture ec2ImdsHttpFixture = new Ec2ImdsHttpFixture(
3137
new Ec2ImdsServiceBuilder(Ec2ImdsVersion.V2).instanceIdentityDocument(
32-
(builder, params) -> builder.field("region", randomIdentifier())
38+
(builder, params) -> builder.field("region", regionSupplier.get())
3339
).newCredentialsConsumer(dynamicCredentials::addValidCredentials)
3440
);
3541

0 commit comments

Comments
 (0)