Skip to content

Commit 446a227

Browse files
committed
Only run on default project
1 parent ba49d48 commit 446a227

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistry.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ public void clusterChanged(ClusterChangedEvent event) {
247247
return;
248248
}
249249
for (ProjectMetadata project : event.state().metadata().projects().values()) {
250+
if (project.id() != ProjectId.DEFAULT) {
251+
continue;
252+
}
250253
addIngestPipelinesIfMissing(project);
251254
addTemplatesIfMissing(project);
252255
addIndexLifecyclePoliciesIfMissing(project);

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistryTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -871,13 +871,6 @@ private ClusterState createClusterState(
871871
.putCustom(IngestMetadata.TYPE, ingestMetadata)
872872
.build()
873873
)
874-
.put(
875-
ProjectMetadata.builder(projectId)
876-
.componentTemplates(componentTemplates)
877-
.putCustom(IndexLifecycleMetadata.TYPE, ilmMeta)
878-
.putCustom(IngestMetadata.TYPE, ingestMetadata)
879-
.build()
880-
)
881874
.build()
882875
)
883876
.blocks(new ClusterBlocks.Builder().build())

x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencies {
1010
testImplementation(testArtifact(project(":x-pack:plugin:security:qa:service-account"), "javaRestTest"))
1111
restXpackTestConfig project(path: ':x-pack:plugin:ilm:qa:rest', configuration: "basicRestSpecs")
1212
restXpackTestConfig project(path: ':x-pack:plugin:downsample:qa:rest', configuration: "basicRestSpecs")
13-
restXpackTestConfig project(path: ':x-pack:plugin:stack', configuration: "basicRestSpecs")
1413
}
1514

1615
// let the yamlRestTests see the classpath of test

0 commit comments

Comments
 (0)