Skip to content

Commit 839a1bc

Browse files
committed
[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: inpink <[email protected]>
1 parent 78860ac commit 839a1bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/main/resources/org/opensearch/tasks/task-index-mapping.json

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"start_time_in_millis": {
3535
"type": "long"
3636
},
37+
"cancellation_time_millis": {
38+
"type": "long"
39+
},
3740
"type": {
3841
"type": "keyword"
3942
},

0 commit comments

Comments
 (0)