Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FLINK-21190 introduced the exception history in the REST API. This required some changes to the REST response of JobExceptionsHandler. Instead of just returning the root cause, a collection of exceptions can be returned. This FLIP is about removing the fields that were deprecated with FLINK-21190.

Public Interfaces


Code Block
languagejs
titleGET /jobs/:jobid/exceptions (Apache Flink 1.x)
linenumberstrue
{
  "all-exceptions": [
    {
      "exception": "<exception-str>",
      "location": "<location-str>",
      "task": "<task-name>",
      "taskManagerId": "<task-manager-id>",
      "timestamp": "<timestamp>"
    },
    { ... }
  ],
  "exceptionHistory" : {
    "entries": [
      {
        "concurrentExceptions": [
          {
            "exceptionName": "<exception-name>",
            "failureLabels": {}
            "location": "<location-str>",
            "stacktrace": "<stacktrace>",
            "taskManagerId": "<task-manager-id>",
            "taskName": "<task-name>",
            "timestamp": <timestamp>
          },
          { ... }
        ],
        "exceptionName": "<root-exception-name>",
        "failureLabels": {}
        "location": "<location-str>",
        "stacktrace": "<stacktrace>",
        "taskManagerId": "<task-manager-id>",
        "taskName": "<task-name>",
        "timestamp": <timestamp>,
        "truncated": false
      }
    ]
  },
  "root-exception": "<root-exception-name>",
  "timestamp": <timestamp>,
  "truncated": false
}



Code Block
languagejs
titleGET /jobs/:jobid/exceptions (Apache Flink 2.x)
linenumberstrue
{
  "exceptionHistory" : {
    "entries": [
      {
        "concurrentExceptions": [
          {
            "exceptionName": "<exception-name>",
            "failureLabels": {}
            "location": "<location-str>",
            "stacktrace": "<stacktrace>",
            "taskManagerId": "<task-manager-id>",
            "taskName": "<task-name>",
            "timestamp": <timestamp>
          },
          { ... }
        ],
        "exceptionName": "<root-exception-name>",
        "failureLabels": {}
        "location": "<location-str>",
        "stacktrace": "<stacktrace>",
        "taskManagerId": "<task-manager-id>",
        "taskName": "<task-name>",
        "timestamp": <timestamp>,
        "truncated": false
      }
    ]
  }
}


Proposed Changes

The following fields are subject to deletion:

...