Skip to content

[API][Node Tasks] Report shard in description when allocation recovering #99393

@stefnestor

Description

@stefnestor

Description

👋🏼 howdy, team!

Would you kindly consider reporting the recovering shard under Node Tasks (tasks.json in the ES diagnostic) when shards are recovering.

So far I've found actions like [internal:index/shard/recovery/start_recovery, internal:index/shard/recovery/restore_file_from_snapshot]:

"hxQRVD47QsCO__jhQeR_QQ:63992420": { "node": "redacted", "id": 63992420, "type": "transport", "action": "internal:index/shard/recovery/start_recovery", + "description": "", "start_time": "2023-06-30T19:43:58.438Z", "start_time_in_millis": 1688154238438, "running_time": "3.2m", "running_time_in_nanos": 197341439527, "cancellable": false, "headers": { "X-elastic-product-origin": "kibana", "trace.id": "redacted", "X-Opaque-Id": "unknownId" } }, "K_1HVPoNTYuOhMjz4pqW0A:1831773": { "node": "K_1HVPoNTYuOhMjz4pqW0A", "id": 1831773, "type": "transport", "action": "internal:index/shard/recovery/restore_file_from_snapshot", + "description": "", "start_time": "2023-06-30T19:44:06.325Z", "start_time_in_millis": 1688154246325, "running_time": "3.1m", "running_time_in_nanos": 189454126622, "cancellable": false, "parent_task_id": "hxQRVD47QsCO__jhQeR_QQ:63992420", "headers": { "X-elastic-product-origin": "kibana", "trace.id": "redacted", "X-Opaque-Id": "unknownId" } },

Ideally it would format same as shard searches:

"coI8DxQ0Rp2_QO6PLEdI3A:1195026": { "node": "redacted", "id": 1195026, "type": "transport", "action": "indices:data/read/search[phase/query]", + "description": "shardId[[partial-.ds-traces-apm-default-2023.06.04-001722][0]]", "start_time": "2023-06-30T19:46:00.239Z", "start_time_in_millis": 1688154360239, "running_time": "1.2m", "running_time_in_nanos": 75596948468, "cancellable": true, "cancelled": false, "parent_task_id": "zfsD8gY6QTmScBqzmaEIXQ:10808608", "headers": { "X-elastic-product-origin": "kibana", "trace.id": "redacted", "X-Opaque-Id": "redacted" } },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions