Skip to content

Commit 2a2d4e0

Browse files
committed
Add NotMultiProjectCapable
1 parent 455888d commit 2a2d4e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IlmHealthIndicatorService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.elasticsearch.cluster.service.ClusterService;
1515
import org.elasticsearch.common.settings.Setting;
1616
import org.elasticsearch.common.settings.Settings;
17+
import org.elasticsearch.core.NotMultiProjectCapable;
1718
import org.elasticsearch.core.TimeValue;
1819
import org.elasticsearch.health.Diagnosis;
1920
import org.elasticsearch.health.HealthIndicatorDetails;
@@ -503,6 +504,7 @@ public boolean test(Long now, IndexMetadata indexMetadata) {
503504
* This method solely exists because we are not making ILM properly project-aware and it's not worth the investment of altering this
504505
* health indicator to be project-aware.
505506
*/
507+
@NotMultiProjectCapable
506508
private static ProjectMetadata getDefaultILMProject(ClusterState state) {
507509
return state.metadata().getProject(ProjectId.DEFAULT);
508510
}

0 commit comments

Comments
 (0)