diff --git a/modules/health-shards-availability/src/main/java/org/elasticsearch/health/plugin/ShardsAvailabilityPlugin.java b/modules/health-shards-availability/src/main/java/org/elasticsearch/health/plugin/ShardsAvailabilityPlugin.java index 3ec59ad8a9b49..aeb45424ebc58 100644 --- a/modules/health-shards-availability/src/main/java/org/elasticsearch/health/plugin/ShardsAvailabilityPlugin.java +++ b/modules/health-shards-availability/src/main/java/org/elasticsearch/health/plugin/ShardsAvailabilityPlugin.java @@ -10,9 +10,7 @@ import org.apache.lucene.util.SetOnce; import org.elasticsearch.cluster.routing.allocation.ShardsAvailabilityHealthIndicatorService; -import org.elasticsearch.common.settings.Settings; import org.elasticsearch.health.HealthIndicatorService; -import org.elasticsearch.plugin.Inject; import org.elasticsearch.plugins.HealthPlugin; import org.elasticsearch.plugins.Plugin; @@ -23,8 +21,7 @@ public class ShardsAvailabilityPlugin extends Plugin implements HealthPlugin { private final SetOnce shardHealthService = new SetOnce<>(); - @Inject - public ShardsAvailabilityPlugin(Settings settings) {} + public ShardsAvailabilityPlugin() {} @Override public Collection createComponents(PluginServices services) { diff --git a/server/src/main/java/org/elasticsearch/node/NodeConstruction.java b/server/src/main/java/org/elasticsearch/node/NodeConstruction.java index 1e547a405c651..f951a1ecba7e6 100644 --- a/server/src/main/java/org/elasticsearch/node/NodeConstruction.java +++ b/server/src/main/java/org/elasticsearch/node/NodeConstruction.java @@ -1043,13 +1043,7 @@ record PluginServiceInstances( discoveryModule.getCoordinator(), masterHistoryService ); - final HealthService healthService = createHealthService( - clusterService, - clusterModule, - coordinationDiagnosticsService, - threadPool, - systemIndices - ); + final HealthService healthService = createHealthService(clusterService, coordinationDiagnosticsService, threadPool); HealthPeriodicLogger healthPeriodicLogger = createHealthPeriodicLogger(clusterService, settings, client, healthService); healthPeriodicLogger.init(); HealthMetadataService healthMetadataService = HealthMetadataService.create(clusterService, settings); @@ -1261,10 +1255,8 @@ private static ReloadablePlugin wrapPlugins(List reloadablePlu private HealthService createHealthService( ClusterService clusterService, - ClusterModule clusterModule, CoordinationDiagnosticsService coordinationDiagnosticsService, - ThreadPool threadPool, - SystemIndices systemIndices + ThreadPool threadPool ) { var serverHealthIndicatorServices = Stream.of( new StableMasterHealthIndicatorService(coordinationDiagnosticsService, clusterService),