Watcher: Remove unused watcher plugin version in index template (elastic/elasticsearch#4023)
There was an unused and unconverted xpack.watcher.plugin.version in the watch history index template, which resulted in this template output: ``` "watch_history_1" : { "order" : 2147483647, "template" : ".watcher-history-1*", "settings" : { ... , "xpack" : { "watcher" : { "plugin" : { "version" : "${xpack.watcher.plugin.version}" }, "template" : { "version" : "1" } } } } ``` As everything is one plugin now, this can be safely removed. Original commit: elastic/x-pack-elasticsearch@c5c0bcaaaa
This commit is contained in:
parent
65db63cac4
commit
7f5216a112
|
@ -137,8 +137,6 @@ import static java.util.Collections.emptyList;
|
|||
|
||||
public class Watcher implements ActionPlugin, ScriptPlugin {
|
||||
|
||||
public static final Setting<String> INDEX_WATCHER_VERSION_SETTING =
|
||||
new Setting<>("index.xpack.watcher.plugin.version", "", Function.identity(), Setting.Property.IndexScope);
|
||||
public static final Setting<String> INDEX_WATCHER_TEMPLATE_VERSION_SETTING =
|
||||
new Setting<>("index.xpack.watcher.template.version", "", Function.identity(), Setting.Property.IndexScope);
|
||||
public static final Setting<Boolean> ENCRYPT_SENSITIVE_DATA_SETTING =
|
||||
|
@ -249,7 +247,6 @@ public class Watcher implements ActionPlugin, ScriptPlugin {
|
|||
for (TemplateConfig templateConfig : WatcherIndexTemplateRegistry.TEMPLATE_CONFIGS) {
|
||||
settings.add(templateConfig.getSetting());
|
||||
}
|
||||
settings.add(INDEX_WATCHER_VERSION_SETTING);
|
||||
settings.add(INDEX_WATCHER_TEMPLATE_VERSION_SETTING);
|
||||
settings.add(MAX_STOP_TIMEOUT_SETTING);
|
||||
settings.add(ExecutionService.DEFAULT_THROTTLE_PERIOD_SETTING);
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"template": ".watcher-history-${xpack.watcher.template.version}*",
|
||||
"order": 2147483647,
|
||||
"settings": {
|
||||
"xpack.watcher.plugin.version": "${xpack.watcher.plugin.version}",
|
||||
"xpack.watcher.template.version": "${xpack.watcher.template.version}",
|
||||
"index.number_of_shards": 1,
|
||||
"index.mapper.dynamic": false
|
||||
|
|
Loading…
Reference in New Issue