-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] Add missing fields to resolve Strict Dynamic Mapping issue in .…
…tasks index (#16060) (#16201) - Fixed issue where `.tasks` index failed to update due to StrictDynamicMappingException when a task was cancelled. - Added missing `cancellation_time_millis` and `resource_stats` fields to `task-index-mapping.json`. - Ensured proper task result storage by updating the mappings. - 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: Daniel Widdis <widdis@gmail.com> Co-authored-by: Daniel Widdis <widdis@gmail.com>
- Loading branch information
Showing
5 changed files
with
170 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
server/src/test/resources/org/opensearch/tasks/missing-fields-task-index-mapping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"_doc" : { | ||
"_meta": { | ||
"version": 5 | ||
}, | ||
"dynamic" : "strict", | ||
"properties" : { | ||
"completed": { | ||
"type": "boolean" | ||
}, | ||
"task" : { | ||
"properties": { | ||
"action": { | ||
"type": "keyword" | ||
}, | ||
"cancellable": { | ||
"type": "boolean" | ||
}, | ||
"cancelled": { | ||
"type": "boolean" | ||
}, | ||
"id": { | ||
"type": "long" | ||
}, | ||
"parent_task_id": { | ||
"type": "keyword" | ||
}, | ||
"node": { | ||
"type": "keyword" | ||
}, | ||
"running_time_in_nanos": { | ||
"type": "long" | ||
}, | ||
"start_time_in_millis": { | ||
"type": "long" | ||
}, | ||
"type": { | ||
"type": "keyword" | ||
}, | ||
"status": { | ||
"type" : "object", | ||
"enabled" : false | ||
}, | ||
"description": { | ||
"type": "text" | ||
}, | ||
"headers": { | ||
"type" : "object", | ||
"enabled" : false | ||
} | ||
} | ||
}, | ||
"response" : { | ||
"type" : "object", | ||
"enabled" : false | ||
}, | ||
"error" : { | ||
"type" : "object", | ||
"enabled" : false | ||
} | ||
} | ||
} | ||
} |