|
@@ -55,7 +55,6 @@ import org.elasticsearch.cluster.routing.BatchedRerouteService;
|
|
|
import org.elasticsearch.cluster.routing.RerouteService;
|
|
|
import org.elasticsearch.cluster.routing.allocation.AllocationService;
|
|
|
import org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor;
|
|
|
-import org.elasticsearch.cluster.routing.allocation.ShardsAvailabilityHealthIndicatorService;
|
|
|
import org.elasticsearch.cluster.routing.allocation.WriteLoadForecaster;
|
|
|
import org.elasticsearch.cluster.service.ClusterService;
|
|
|
import org.elasticsearch.cluster.service.TransportVersionsFixupListener;
|
|
@@ -755,7 +754,8 @@ class NodeConstruction {
|
|
|
Supplier<RepositoriesService> repositoriesServiceSupplier,
|
|
|
TelemetryProvider telemetryProvider,
|
|
|
AllocationService allocationService,
|
|
|
- IndicesService indicesService
|
|
|
+ IndicesService indicesService,
|
|
|
+ SystemIndices systemIndices
|
|
|
) implements Plugin.PluginServices {}
|
|
|
PluginServiceInstances pluginServices = new PluginServiceInstances(
|
|
|
client,
|
|
@@ -771,7 +771,8 @@ class NodeConstruction {
|
|
|
repositoriesServiceReference::get,
|
|
|
telemetryProvider,
|
|
|
clusterModule.getAllocationService(),
|
|
|
- indicesService
|
|
|
+ indicesService,
|
|
|
+ systemIndices
|
|
|
);
|
|
|
|
|
|
Collection<?> pluginComponents = pluginsService.flatMap(p -> p.createComponents(pluginServices)).toList();
|
|
@@ -1268,7 +1269,6 @@ class NodeConstruction {
|
|
|
var serverHealthIndicatorServices = Stream.of(
|
|
|
new StableMasterHealthIndicatorService(coordinationDiagnosticsService, clusterService),
|
|
|
new RepositoryIntegrityHealthIndicatorService(clusterService),
|
|
|
- new ShardsAvailabilityHealthIndicatorService(clusterService, clusterModule.getAllocationService(), systemIndices),
|
|
|
new DiskHealthIndicatorService(clusterService),
|
|
|
new ShardsCapacityHealthIndicatorService(clusterService)
|
|
|
);
|