Skip to content

Commit

Permalink
Reinstate recovery planner plugin construction to the main construct …
Browse files Browse the repository at this point in the history
…method (elastic#102206)

It was moved inside the module by elastic#101123, this puts it back where it was
  • Loading branch information
thecoop authored Nov 15, 2023
1 parent 6449899 commit d44770d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ record PluginServiceInstances(
compatibilityVersions,
featureService
);
this.nodeService = new NodeService(
nodeService = new NodeService(
settings,
threadPool,
monitorService,
Expand Down Expand Up @@ -1102,8 +1102,8 @@ record PluginServiceInstances(
loadDiagnosticServices(settings, discoveryModule.getCoordinator(), clusterService, transportService, featureService, threadPool)
);

RecoveryPlannerService recoveryPlannerService = getRecoveryPlannerService(threadPool, clusterService, repositoryService);
modules.add(b -> {
RecoveryPlannerService recoveryPlannerService = getRecoveryPlannerService(threadPool, clusterService, repositoryService);
serviceProvider.processRecoverySettings(pluginsService, settingsModule.getClusterSettings(), recoverySettings);
SnapshotFilesProvider snapshotFilesProvider = new SnapshotFilesProvider(repositoryService);
var peerRecovery = new PeerRecoverySourceService(
Expand Down

0 comments on commit d44770d

Please sign in to comment.