Chesnay Schepler created FLINK-32226:
----------------------------------------

             Summary: RestClusterClient leaks jobgraph file if submission fails
                 Key: FLINK-32226
                 URL: https://issues.apache.org/jira/browse/FLINK-32226
             Project: Flink
          Issue Type: Bug
          Components: Client / Job Submission
    Affects Versions: 1.17.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.18.0, 1.17.2


{code:java}
        submissionFuture
                .thenCompose(ignored -> jobGraphFileFuture)
                .thenAccept(
                        jobGraphFile -> {
                            try {
                                Files.delete(jobGraphFile);
                            } catch (IOException e) {
                                LOG.warn("Could not delete temporary file {}.", 
jobGraphFile, e);
                            }
                        });
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to