Skip to content

Commit

Permalink
Use getMaxDataNodeCompatibleIndexVersion() in LogsdbIndexModeSettings…
Browse files Browse the repository at this point in the history
…Provider

instead of getMinSupportedIndexVersion().
  • Loading branch information
martijnvg committed Jan 14, 2025
1 parent 2fe55db commit b3b2a9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Collection<?> createComponents(PluginServices services) {
public Collection<IndexSettingProvider> getAdditionalIndexSettingProviders(IndexSettingProvider.Parameters parameters) {
logsdbIndexModeSettingsProvider.init(
parameters.mapperServiceFactory(),
() -> parameters.clusterService().state().nodes().getMinSupportedIndexVersion(),
() -> parameters.clusterService().state().nodes().getMaxDataNodeCompatibleIndexVersion(),
DiscoveryNode.isStateless(settings) == false
);
return List.of(logsdbIndexModeSettingsProvider);
Expand Down

0 comments on commit b3b2a9c

Please sign in to comment.