You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/01/29 13:29:04 UTC

[GitHub] [flink] zentol commented on a change in pull request #14777: [FLINK-21164][rest] Delete temporary jars

zentol commented on a change in pull request #14777:
URL: https://github.com/apache/flink/pull/14777#discussion_r566821745



##########
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:
       Yes, the JarListHandler has the same problem. I did not know it actually creates a `PackagedProgram`.
   
   As for the `ApplicationClusterEntryPoint`, the files _should_ be cleaned up when the entry point shuts down because we call `File#deleteOnExit` in `PackagedProgram#createTempFile`.




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