kl0u commented on a change in pull request #14028:
URL: https://github.com/apache/flink/pull/14028#discussion_r525017417



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java
##########
@@ -133,26 +132,32 @@ public JobExecutionResult 
toJobExecutionResult(ClassLoader classLoader) throws J
                                        accumulatorResults,
                                        classLoader));
                } else {
-                       final Throwable cause;

Review comment:
       This `else {...}` block can now become simply:
   `throw getJobExecutionException(serializedThrowable, classLoader);` right? 
We do not need to wrap the original exception anymore.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to