Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16050 Add Attempt Information
  3. FLINK-13510

Show fail attempt for subtask in timelime In Rest API

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Runtime / REST
    • None

    Description

      Now, a user just can see subtask current attempt in the timeline. If job failover, can not see some has canceled task timeline.

      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:
      {
        "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"
                }
              }
            }
          }
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lining lining
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: