From 10771a1342ed92cdd6cc390fdfc99b0f3ca9fe83 Mon Sep 17 00:00:00 2001 From: Ying Mao Date: Thu, 12 Dec 2024 09:47:41 -0500 Subject: [PATCH] [Response Ops][Task Manager] Deprecating `xpack.task_manager.claim_strategy` config (#203341) Resolves https://github.com/elastic/kibana/issues/202492 ## Summary For 9.0 only. Deprecates `xpack.task_manager.claim_strategy` configuration. Logs warning if value is explicitly set. This value was never added to the Kibana docs in `docs/settings/task-manager-settings.asciidoc` so nothing to remove there. ## To Verify Set `xpack.task_manager.claim_strategy` config in `kibana.dev.yml` and start Kibana. See warning get logged. Co-authored-by: Elastic Machine --- x-pack/plugins/task_manager/server/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugins/task_manager/server/index.ts b/x-pack/plugins/task_manager/server/index.ts index f2ad559f02b9..93ca1b13b8b0 100644 --- a/x-pack/plugins/task_manager/server/index.ts +++ b/x-pack/plugins/task_manager/server/index.ts @@ -69,6 +69,10 @@ export const config: PluginConfigDescriptor = { level: 'warning', message: `Configuring "xpack.task_manager.max_workers" is deprecated and will be removed in a future version. Remove this setting and use "xpack.task_manager.capacity" instead.`, }), + deprecate('claim_strategy', 'a future version', { + level: 'warning', + message: `Configuring "xpack.task_manager.claim_strategy" is deprecated and will be removed in a future version. This setting should be removed.`, + }), (settings, fromPath, addDeprecation) => { const taskManager = get(settings, fromPath); if (taskManager?.index) {