mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-07-31 17:38:33 +00:00
Merge pull request #882 from Alfresco/feature/ACS-6168_intermittent_test_failures_in_http_load_tests
ACS-6168: Add additional check after temp folder creation attempt, to avoid concurrency clashes
This commit is contained in:
@@ -230,7 +230,7 @@ public class FileManager
|
||||
|
||||
final File systemTempDir = new File(systemTempDirPath);
|
||||
final File tempDir = new File(systemTempDir, dirName);
|
||||
if (!tempDir.exists() && !tempDir.mkdirs())
|
||||
if (!tempDir.exists() && !tempDir.mkdirs() && !tempDir.exists())
|
||||
{
|
||||
throw new RuntimeException("Failed to create temp directory: " + tempDir);
|
||||
}
|
||||
|
Reference in New Issue
Block a user