Skip to content

Commit

Permalink
[BUG] Add cancellation_time_millis to resolve Strict Dynamic Mappin…
Browse files Browse the repository at this point in the history
…g issue in .tasks index (opensearch-project#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 <inpink@kakao.com>

Signed-off-by: inpink <inpink@kakao.com>
  • Loading branch information
inpink committed Oct 11, 2024
1 parent 78860ac commit 85824fa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_doc" : {
"_meta": {
"version": 4
"version": 5
},
"dynamic" : "strict",
"properties" : {
Expand Down Expand Up @@ -34,6 +34,9 @@
"start_time_in_millis": {
"type": "long"
},
"cancellation_time_millis": {
"type": "long"
},
"type": {
"type": "keyword"
},
Expand Down

0 comments on commit 85824fa

Please sign in to comment.