From 11fea127e2ac4d36ee7ad80ca1577efb788e7316 Mon Sep 17 00:00:00 2001 From: inpink Date: Fri, 11 Oct 2024 18:55:07 +0900 Subject: [PATCH] [BUG] Add `cancellation_time_millis` to resolve Strict Dynamic Mapping issue in .tasks index (#16060) - Fixed issue where `.tasks` index failed to update due to StrictDynamicMappingException when a task was cancelled. - Added missing `cancellation_time_millis` field to `task-index-mapping.json`. - Ensured proper handling of task cancellation events in Cross-Cluster Replication (CCR) by updating the mappings. - Verified by creating and deleting an auto follow rule without StrictDynamicMappingException. - Changed the version in the meta field from 4 to 5 to reflect the updated mappings Signed-off-by: inpink --- .../main/resources/org/opensearch/tasks/task-index-mapping.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/resources/org/opensearch/tasks/task-index-mapping.json b/server/src/main/resources/org/opensearch/tasks/task-index-mapping.json index 58b6b2d3bc873..2e59bbc4803bf 100644 --- a/server/src/main/resources/org/opensearch/tasks/task-index-mapping.json +++ b/server/src/main/resources/org/opensearch/tasks/task-index-mapping.json @@ -1,7 +1,7 @@ { "_doc" : { "_meta": { - "version": 4 + "version": 5 }, "dynamic" : "strict", "properties" : {