Skip to content

Commit b1f4b3f

Browse files
bgeng777gyfora
authored andcommitted
[FLINK-35192] Remove usage of deleteOnExit() to reduce the memory usage of the operator
1 parent 921bfd0 commit b1f4b3f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/FlinkConfigBuilder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,14 +566,12 @@ private static String createLogConfigFiles(String log4jConf, String logbackConf)
566566
File logbackConfFile = new File(tmpDir.getAbsolutePath(), CONFIG_FILE_LOGBACK_NAME);
567567
Files.write(logbackConfFile.toPath(), logbackConf.getBytes());
568568
}
569-
tmpDir.deleteOnExit();
570569
return tmpDir.getAbsolutePath();
571570
}
572571

573572
private static String createTempFile(PodTemplateSpec podTemplate) throws IOException {
574573
final File tmp = File.createTempFile(GENERATED_FILE_PREFIX + "podTemplate_", ".yaml");
575574
Files.write(tmp.toPath(), Serialization.asYaml(podTemplate).getBytes());
576-
tmp.deleteOnExit();
577575
return tmp.getAbsolutePath();
578576
}
579577

0 commit comments

Comments
 (0)