[
https://issues.apache.org/jira/browse/MESOS-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christoph Neuroth updated MESOS-2269:
-------------------------------------
Description:
For failed tasks the JSON returned by the API contains an empty array:
{code:json}
state: "TASK_FAILED",
statuses: [ ]
{code}
While all other states create an entry in the `statuses` field:
{code:json}
state: "TASK_KILLED",
statuses: [
{ state: "TASK_RUNNING", timestamp: 1421485535.89169 },
{ state: "TASK_KILLED", timestamp: 1421485603.19879 }
]
{code}
This makes the task list in the web UI hard to use because those failed tasks
will always be shown first when sorting by timestamp and it's generally
confusing to have tasks without timestamps.
was:
For failed tasks the JSON returned by the API contains an empty array:
```
state: "TASK_FAILED",
statuses: [ ]
```
While all other states create an entry in the `statuses` field:
```
state: "TASK_KILLED",
statuses: [
{ state: "TASK_RUNNING", timestamp: 1421485535.89169 },
{ state: "TASK_KILLED", timestamp: 1421485603.19879 }
]
```
This makes the task list in the web UI hard to use because those failed tasks
will always be shown first when sorting by timestamp and it's generally
confusing to have tasks without timestamps.
> Failed tasks don't have a timestamp
> -----------------------------------
>
> Key: MESOS-2269
> URL: https://issues.apache.org/jira/browse/MESOS-2269
> Project: Mesos
> Issue Type: Bug
> Components: json api
> Affects Versions: 0.20.1
> Reporter: Christoph Neuroth
>
> For failed tasks the JSON returned by the API contains an empty array:
> {code:json}
> state: "TASK_FAILED",
> statuses: [ ]
> {code}
> While all other states create an entry in the `statuses` field:
> {code:json}
> state: "TASK_KILLED",
> statuses: [
> { state: "TASK_RUNNING", timestamp: 1421485535.89169 },
> { state: "TASK_KILLED", timestamp: 1421485603.19879 }
> ]
> {code}
> This makes the task list in the web UI hard to use because those failed tasks
> will always be shown first when sorting by timestamp and it's generally
> confusing to have tasks without timestamps.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)