XComp commented on a change in pull request #15049:
URL: https://github.com/apache/flink/pull/15049#discussion_r587598016
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/JobExceptionsHandler.java
##########
@@ -104,8 +104,12 @@ protected JobExceptionsInfo handleRequest(
private static JobExceptionsInfo createJobExceptionsInfo(
ExecutionGraphInfo executionGraphInfo, int
exceptionToReportMaxSize) {
+ final List<TaskFailureHistoryEntry> rootCauseFirstExceptionHistory =
+ executionGraphInfo.getExceptionHistory();
+ Collections.reverse(rootCauseFirstExceptionHistory);
Review comment:
You have a point. It's just that reversing the order makes it easier to
select the root cause which is the last element.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]