Skip to content

Commit

Permalink
runtime中静态合并部署时多模块并行执行createTempDir时异常 (#911)
Browse files Browse the repository at this point in the history
Co-authored-by: jiyunfei <jiyunfei@come-future.com>
Co-authored-by: leo james <leojames.googol@gmail.com>
  • Loading branch information
3 people authored May 6, 2024
1 parent 5a13e01 commit 67a0bdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static String bytesToHex(byte[] bytes) {
* Atomically creates a new directory somewhere beneath the system's
* temporary directory (as defined by the {@code java.io.tmpdir} system
*/
public static File createTempDir(String subPath) {
public static synchronized File createTempDir(String subPath) {
File baseDir = FileUtils.file(System.getProperty("java.io.tmpdir"));
File tempDir = new File(baseDir, subPath);
if (tempDir.exists()) {
Expand Down

0 comments on commit 67a0bdf

Please sign in to comment.