-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Open
Labels
:Distributed Coordination/Task ManagementIssues for anything around the Tasks API - both persistent and node level.Issues for anything around the Tasks API - both persistent and node level.>breakingTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.stalled
Description
Right now the list tasks response returns both a node (string) and an id (number). The trouble is that everywhere else we refer to the task id as a string. The fact that the list tasks response has both of these elements implies some contract for the shape of a task id when we do not intend for there to be one. Currently the task id consists of the node, a :, and then the id but we might change it in the future without any prior warning.
I think we should remove node and id from the lists tasks response entirely and users should use the object's name in the response as the id.
This is what the response looks like now:
{
"nodes": {
"NCvmGYS-RsW2X8JxEYumgA": {
"name": "NCvmGYS",
"transport_address": "127.0.0.1:9300",
"host": "127.0.0.1",
"ip": "127.0.0.1:9300",
"roles": [
"master",
"data",
"ingest"
],
"tasks": {
"NCvmGYS-RsW2X8JxEYumgA:1204320": {
"node": "NCvmGYS-RsW2X8JxEYumgA",
"id": 1204320,
"type": "transport",
"action": "indices:data/write/delete/byquery",
"start_time_in_millis": 1528310404882,
"running_time_in_nanos": 24218556132,
"cancellable": true
}
}
}
}
}
And I want it to be:
{
"nodes": {
"NCvmGYS-RsW2X8JxEYumgA": {
"name": "NCvmGYS",
"transport_address": "127.0.0.1:9300",
"host": "127.0.0.1",
"ip": "127.0.0.1:9300",
"roles": [
"master",
"data",
"ingest"
],
"tasks": {
"NCvmGYS-RsW2X8JxEYumgA:1204320": {
"type": "transport",
"action": "indices:data/write/delete/byquery",
"start_time_in_millis": 1528310404882,
"running_time_in_nanos": 24218556132,
"cancellable": true
}
}
}
}
}
DaveCTurner
Metadata
Metadata
Assignees
Labels
:Distributed Coordination/Task ManagementIssues for anything around the Tasks API - both persistent and node level.Issues for anything around the Tasks API - both persistent and node level.>breakingTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.stalled