zentol commented on a change in pull request #14777: URL: https://github.com/apache/flink/pull/14777#discussion_r566823679
########## File path: flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarRunHandler.java ########## @@ -103,6 +103,11 @@ public JarRunHandler( executor) .handle( (jobIds, throwable) -> { + try { + program.deleteExtractedLibraries(); Review comment: Now whether they are actually deleted depends a bit on when the JVM executes the delete calls. If the ClassLoader is still around at that time, then the deletion may in fact fail. Explicitly closing the ClassLoader in the PackagedProgram (which unfortunately leaks into the JobGraph...) is a separate issue (see FLINK-9844). ---------------------------------------------------------------- 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