tillrohrmann commented on a change in pull request #13115:
URL: https://github.com/apache/flink/pull/13115#discussion_r468508047



##########
File path: 
flink-clients/src/main/java/org/apache/flink/client/program/PackagedProgram.java
##########
@@ -293,7 +294,7 @@ private static void callMainMethod(Class<?> entryClass, 
String[] args) throws Pr
                } catch (InvocationTargetException e) {
                        Throwable exceptionInMethod = e.getTargetException();
                        if (exceptionInMethod instanceof Error) {
-                               throw (Error) exceptionInMethod;
+                               throw (Error) 
ClusterEntryPointExceptionUtils.tryEnrichClusterEntryPointError(exceptionInMethod);

Review comment:
       I think the `PackagedProgram` is not the best place to call the 
enrichment method because this class can also be used on the client side when 
generating a `JobGraph` which is later submitted to the cluster. I think either 
the `JarRunHandler` and the `JarPlanHandler` or even the `AbstractHandler` 
might be a better place for the enrichment.




----------------------------------------------------------------
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]


Reply via email to