[
https://issues.apache.org/jira/browse/FLINK-13510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Knauf updated FLINK-13510:
-------------------------------------
Labels: (was: stale-major)
Removed "stale-critical|major|minor" label in line with
https://issues.apache.org/jira/browse/FLINK-22429.
> Show fail attempt for subtask in timelime In Rest API
> -----------------------------------------------------
>
> Key: FLINK-13510
> URL: https://issues.apache.org/jira/browse/FLINK-13510
> Project: Flink
> Issue Type: Sub-task
> Components: Runtime / REST
> Reporter: lining
> Priority: Major
>
> Now, a user just can see subtask current attempt in the timeline. If job
> failover, can not see some has canceled task timeline.
> h3. Proposed Changes
> * In the 'subtasks' array, we have objects of type SubtaskTimeInfo with only
> one added field 'attempt'.
> * add query parameter show-history, the default value is false. If
> show-history is true, information for all attempts including
> previous ones will be returned
> * URL: /jobs/:jobid/vertices/:vertexid/subtasktimes?show-history=true
> * response:
> {code:json}
> {
> "type" : "object",
> "id" :
> "urn:jsonschema:org:apache:flink:runtime:rest:messages:SubtasksTimesInfo",
> "properties" : {
> "id" : {
> "type" : "string"
> },
> "name" : {
> "type" : "string"
> },
> "now" : {
> "type" : "integer"
> },
> "subtasks" : {
> "type" : "array",
> "items" : {
> "type" : "object",
> "id" :
> "urn:jsonschema:org:apache:flink:runtime:rest:messages:SubtasksTimesInfo:SubtaskTimeInfo",
> "properties" : {
> "duration" : {
> "type" : "integer"
> },
> "host" : {
> "type" : "string"
> },
> "subtask" : {
> "type" : "integer"
> },
> "timestamps" : {
> "type" : "object",
> "additionalProperties" : {
> "type" : "integer"
> }
> },
> "attempt": {
> "type" : "integer"
> }
> }
> }
> }
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)