From 7946ad998323465e9f7292cf55212555e7178048 Mon Sep 17 00:00:00 2001 From: inpink Date: Sat, 5 Oct 2024 13:08:04 +0900 Subject: [PATCH] [BUG] Add `cancellation_time_millis` to resolve Strict Dynamic Mapping issue in .tasks index - 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. Signed-off-by: HongJu Yang --- .../resources/org/opensearch/tasks/task-index-mapping.json | 3 +++ 1 file changed, 3 insertions(+) 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..7a29c549d750a 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 @@ -34,6 +34,9 @@ "start_time_in_millis": { "type": "long" }, + "cancellation_time_millis": { + "type": "long" + }, "type": { "type": "keyword" },