...
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 |
---|
language | js |
---|
title | GET /jobs/:jobid/exceptions (Apache Flink 1.x) |
---|
linenumbers | true |
---|
| {
"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 |
---|
language | js |
---|
title | GET /jobs/:jobid/exceptions (Apache Flink 2.x) |
---|
linenumbers | true |
---|
| {
"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:
...