From 0035204487d1e03085c56bd4555c3585d5c82884 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Fri, 20 Dec 2019 09:44:47 +0000 Subject: [PATCH] Fix meta version of task index mapping (#50363) The built-in task index mapping has a version field in its metadata, so that the TaskResultsService can check to see if it needs to update mappings when a new task result is stored. #48393 updated this version in TaskResultsService but omitted to change the version in the mapping itself, so a mapping update is applied every time a new task result is stored. This commit updates the mapping version so that it corresponds to the version in TaskResultsService. --- .../resources/org/elasticsearch/tasks/task-index-mapping.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/resources/org/elasticsearch/tasks/task-index-mapping.json b/server/src/main/resources/org/elasticsearch/tasks/task-index-mapping.json index 435e6c5759cbb..a2e4a644412e9 100644 --- a/server/src/main/resources/org/elasticsearch/tasks/task-index-mapping.json +++ b/server/src/main/resources/org/elasticsearch/tasks/task-index-mapping.json @@ -1,7 +1,7 @@ { "task" : { "_meta": { - "version": 2 + "version": 3 }, "dynamic" : "strict", "properties" : {