rmetzger commented on a change in pull request #14499:
URL: https://github.com/apache/flink/pull/14499#discussion_r557493710



##########
File path: 
flink-clients/src/main/java/org/apache/flink/client/program/PackagedProgram.java
##########
@@ -210,7 +211,12 @@ public String getDescription() throws 
ProgramInvocationException {
      * local execution by default.
      */
     public void invokeInteractiveModeForExecution() throws 
ProgramInvocationException {
-        callMainMethod(mainClass, args);
+        FlinkUserSecurityManager.monitorSystemExitForCurrentThread();

Review comment:
       Ah, you have added this here because in some execution modes, the 
JobManager process is running Flink's main methods.
   Makes sense. Consider my comment resolved.




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