mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
The consistent settings service is only used in tests so far. No need to start it unless it's actually used.
This commit is contained in:
parent
f3ed641fc7
commit
f6a8599cf8
@ -399,9 +399,11 @@ public class Node implements Closeable {
|
||||
final ClusterService clusterService = new ClusterService(settings, settingsModule.getClusterSettings(), threadPool);
|
||||
clusterService.addStateApplier(scriptService);
|
||||
resourcesToClose.add(clusterService);
|
||||
clusterService.addLocalNodeMasterListener(
|
||||
new ConsistentSettingsService(settings, clusterService, settingsModule.getConsistentSettings())
|
||||
.newHashPublisher());
|
||||
final Set<Setting<?>> consistentSettings = settingsModule.getConsistentSettings();
|
||||
if (consistentSettings.isEmpty() == false) {
|
||||
clusterService.addLocalNodeMasterListener(
|
||||
new ConsistentSettingsService(settings, clusterService, consistentSettings).newHashPublisher());
|
||||
}
|
||||
final IngestService ingestService = new IngestService(clusterService, threadPool, this.environment,
|
||||
scriptService, analysisModule.getAnalysisRegistry(),
|
||||
pluginsService.filterPlugins(IngestPlugin.class), client);
|
||||
|
Loading…
x
Reference in New Issue
Block a user