Skip to content

Commit

Permalink
[environment-##1426] delete tmp flink-distribute-cache-xxx dir after …
Browse files Browse the repository at this point in the history
…job is done
  • Loading branch information
liumengkai committed Dec 2, 2022
1 parent 4b834c5 commit 587dbeb
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import javax.annotation.Nonnull;

import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.net.URL;
import java.util.Collections;
Expand Down Expand Up @@ -123,12 +122,7 @@ private void clearFlinkLocalDsitributeCache(JobGraph jobGraph) throws IOExceptio
JobID jobID = jobGraph.getJobID();
File[] flinkTmpDirs =
osTmpDir.listFiles(
new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
return name.startsWith("flink-distributed-cache-" + jobID);
}
});
(dir, name) -> name.startsWith("flink-distributed-cache-" + jobID));

if (flinkTmpDirs != null && flinkTmpDirs.length > 0) {
for (File flinkTmpDir : flinkTmpDirs) {
Expand Down

0 comments on commit 587dbeb

Please sign in to comment.