Update createComponents to supply AllocationService instead of AllocationDeciders (#92785)

This commit is contained in:
Ievgen Degtiarenko 2023-01-10 14:18:33 +01:00 committed by GitHub
parent 227181d72b
commit ad229dd70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 105 additions and 103 deletions

View file

@ -11,7 +11,7 @@ package org.elasticsearch.plugin.repository.url;
import org.apache.lucene.util.SetOnce;
import org.elasticsearch.client.internal.Client;
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
import org.elasticsearch.cluster.routing.allocation.decider.AllocationDeciders;
import org.elasticsearch.cluster.routing.allocation.AllocationService;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.blobstore.url.http.URLHttpClient;
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
@ -88,7 +88,7 @@ public class URLRepositoryPlugin extends Plugin implements RepositoryPlugin {
IndexNameExpressionResolver indexNameExpressionResolver,
Supplier<RepositoriesService> repositoriesServiceSupplier,
Tracer tracer,
AllocationDeciders allocationDeciders
AllocationService allocationService
) {
final URLHttpClient.Factory apacheURLHttpClientFactory = new URLHttpClient.Factory();